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?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)