6502 emulator in 3 KLOC of busybox ash script

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
AndrewW
Posts: 4
Joined: 13 Nov 2023

6502 emulator in 3 KLOC of busybox ash script

Post 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
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: 6502 emulator in 3 KLOC of busybox ash script

Post 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
Post Reply