Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Commodore’s Assemblers: Part 1: MOS Cross-Assembler (pagetable.com)
83 points by matt_d on May 15, 2021 | hide | past | favorite | 5 comments


When I did some assembly programming on the Commodore PET, before I got the dual-floppy drive (so I could run their assembler and do lots of other things), I wrote an assembler in Basic that took the source as data statements. Don't remember much since this was over 40 years ago, but is was good enough for me to use.

I also got what was possibly the first external cassette drive for the PET on the west coast.

Those were the days.


Therefore, the assembler could not output a binary file, but instead wrote a portable, hex-encoded text file, like this

That looks like a simplified and slightly altered version of https://en.wikipedia.org/wiki/Intel_hex_format , which is still relatively common in embedded development today.


In the golden days, without Internet access and no CDs, computer magazines printed source code encoded in a hex format to save paper space. Each line with 10 or so hex-codes had a checksum to test your actual inputs against.


Here's the documentation and source of not just a cross-assembler but a 6502 emulator running on a PDP-11 running BASIC in the RSTS/E operating system.

https://archive.org/details/TheSimulationOf6502Microprocesso...


Does the "MOS Cross-Assembler" survive (in either source or binary form?)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: