2 ms·
Oh that's an interesting idea. I actually considered writing my own assembler to some format that I could read, but then I realized: * It's way cooler if you c
by haldean 13y ago
Oh that's an interesting idea. I actually considered writing my own assembler to some format that I could read, but then I realized:
* It's way cooler if you can use other peoples' assemblers and still have your bytecode interpreter work
* Using other peoples' assemblers is a good way to sanity check any assumptions you made (this bit me with branches, for example; I was branching from the location of the current instruction when the spec is to branch from the location of the next instruction)
* It's easier to read binary than to read hex strings and transform them to binary.
Plus, transforming binaries to readable hex is as easy as "hexdump -c". :)