4 ms·
While it's interesting to get the original comments, it didn't take long before there were a number of books published with full disassemblies of both the BASIC
by vidarh 12y ago
While it's interesting to get the original comments, it didn't take long before there were a number of books published with full disassemblies of both the BASIC and kernel ROM's with extensive comments out there, full of disclaimers about how they were "just for reference". It's kinda hard to prevent extensive reverse engineering when the each of the twom ROMs were just 8KB each...
- jacquesm 12y agoI did this for the 6809 version of Microsoft Basic as used in the Dragon 32 (color computer clone made in the UK). It took the better part of a year before I fully understood how it worked. Reverse engineering is hard work, not as much as writing something but still quite a bit of effort went into it. I learned a lot from that, on a high level how a language implementation works, on a lower level how things like arrays, tokenization, memory management, strings and statement dispatch worked. The hardest part to get my head wrapped around by far was the expression evaluator. But once understood you could do all kinds of nifty things such as extend the language and call bits and pieces of the interpreter from assembly to perform some task, it instantly became like a library accessible from any machine language program (no such thing as upgrading your ROM).