Open fhars opened 12 years ago
Making sure I have this correct: this code relies on all of the SET POP, [_ + B]
instructions being two words long, right?
I've been planning on adding a symbol that forces a parameter to use the next word if possible, mainly for code that requires the instruction to be that long or for self re-writing code. I'd rather that code that wasn't explicitly marked as such was always written in the shortest form possible (When I eventually add support for macros, then it makes sense that someone might do something like SET X, [somemacro-1+B]
where the macro might end up being 1 at compile time for example, and I'd like to compile that down to [B] in that case, etc.). The line in this program would look something like this then: SET POP, @[0 + B]
.
[0 + register] is assembled as the non-equivalent [register], which completey breaks code like