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
6502 emulator in 3 KLOC of busybox ash script
Re: 6502 emulator in 3 KLOC of busybox ash script
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
> 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