Is there an assembler for 6502 that could be made to run natively on the X16?
Preferably it would:
Be open source
Read source code from files
Assemble directly to files
Support at least named labels, basic compiler directives (for instance .byte, .word, .text) and macros, simliar to the Commodore Macro Assembler that you could use on the C64
I've been searching, but it seems hard to find.
I used the Commodore Macro Assembler a lot with my C64 in the 80s. Even though I had a disk drive, it was cumbersome and took quite some time to edit, save, assemble, load and test each change in a program. If the real X16 reads and writes SD card files at the same speed as the emulator, we would be getting much closer to a modern experience with a file based assembler.
Question
Stefan
Hello,
Is there an assembler for 6502 that could be made to run natively on the X16?
Preferably it would:
I've been searching, but it seems hard to find.
I used the Commodore Macro Assembler a lot with my C64 in the 80s. Even though I had a disk drive, it was cumbersome and took quite some time to edit, save, assemble, load and test each change in a program. If the real X16 reads and writes SD card files at the same speed as the emulator, we would be getting much closer to a modern experience with a file based assembler.
Link to comment
Share on other sites
Top Posters For This Question
40
42
5
4
Popular Days
Jan 13
6
Jun 23
6
Apr 21
5
Jan 18
5
Top Posters For This Question
Stefan 40 posts
desertfish 42 posts
ZeroByte 5 posts
Scott Robison 4 posts
Popular Days
Jan 13 2021
6 posts
Jun 23 2021
6 posts
Apr 21 2021
5 posts
Jan 18 2021
5 posts
Popular Posts
desertfish
Here's a version of the assembler to play with. It doesn't support symbols yet so stick with basic assembly. It also only writes output directly to memory for now. The video shows it in action
desertfish
Exiting results. The use of the hash table provides a massive speedup. It now assembles around 32 kilobyte of source code with 700 symbols in it (basically a giant sequence of labels and JMPs to
desertfish
Worked a bit more on my attempt at a file-based assembler. Basic assembler functionality more or less done, it can more or less assemble a raw disassembly now. No labels, symbols or other things yet
Posted Images
112 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.