Hi Harald,
What are you trying to achieve here? By pMARS assembler do you mean redcode? Are you trying to build a redcode interpreter in javascript? Tell us a bit about your goals.
Steveg
On 1/20/21 11:39 PM, Stephen Gunnell wrote:
Hi Harald,
What are you trying to achieve here? By pMARS assembler do you mean redcode? Are you trying to build a redcode interpreter in javascript? Tell us a bit about your goals.
Steveg
By "assembler" I mean the translation program ("compiler") from macro-Redcode to loadfile format.
I keep finding errors in my assembler, mostly because I seem to be
working on wrong assumptions, and I suspect my general approach is bad
too. In a real world scenario one would perhaps not use recursions and string replacements, like I do atm.
I keep reading this asm.c, but it isn't much fun, because the code isn't very self-explanatory. If no better solution comes up, I will have to somehow analyze pMARS' source. *shudders*
Maybe there is another assmebler out there, which has nicer code, or
some kind of high level description of the translation steps?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 403 |
Nodes: | 16 (2 / 14) |
Uptime: | 40:12:01 |
Calls: | 8,407 |
Calls today: | 2 |
Files: | 13,171 |
Messages: | 5,904,809 |