6502 Assembly Formatting

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JetSetIlly

I'm working on a new Atari 2600 related project. It's currently unfinished but an interesting effect of the project is the ability to format/correct 6502 assembly files. It's not perfect but I think it's interesting enough to show

In the video, I open an empty file in vim and write a nonsense 6502 program. I'm deliberately writing badly - mixing cases, putting instructions in the wrong column, using 0x instead of $ to indicate a hex number.

When the file is saved, the program parses what I've written and rewrites it so that it's formatted and displayed nicely.

Next step is to feedback warnings for things like undefined labels and illegal instructions. But this is a good first milestone I think.


https://github.com/JetSetIlly/Gopher2600
@JetSetIlly@mastodon.gamedev.place
@jetsetilly.bsky.social

Thomas Jentzsch