Page 1 of 1

6502 emulator in 3 KLOC of busybox ash script

Posted: Fri Mar 21, 2025 7:39 am
by AndrewW
An entertaining/horrifying use of the Unix Shell:

https://codeberg.org/calebccff/6502.sh

Discussion thread on Mastodon:

https://social.treehouse.systems/@cas/1 ... 0700263367

Re: 6502 emulator in 3 KLOC of busybox ash script

Posted: Fri Mar 21, 2025 8:01 am
by BigEd
wonderful! And featureful too:
> If you run with the `-d` flag then all the debug logs get written to a socket, so you can interact with the emulator and see the instructions being decoded and executed in a second terminal. This felt super cool to implement and have actually work. Often times one terminal just isn't enough for all the logging you want :D