Firstly, this is great. I love anything that makes code more declarative & readable.
I wonder about using "register variables"
The example `DIM MYVAR 0xFF` look like you're doing replaces, such as `REGLOD 0x1 MYVAR 0x0` becomes `REGLOD 0x1 0xFF 0x0`
The example `DIM MYREG #R5` might be a "replace" as well, so `IF 0x1 MYREG 0x08` would be `IF 0x1 #R5 0x08` ?!?!?
But, what happens with a `GETADDR 0x1 MYREG 0x0`? Does it become `GETADDR 0x1 #R5 0x0` ? I think the docs say the syntax must be `GETADDR 0x1 0x5 0x0`
This doc text is my confusion:
In code, if you are getting a value from the register then you need to use #Rn where n is the register number. If you are doing anything to a register other then using its value then you should simply use the register number for the argument.
I've found I have to specifically use `#R10` or `0xa` depending on situation and had to create my own converter (via preprocessing).
Have you changed something, or is there special handling or more uniform handling now for registers, or "register variables"?
Or have I misunderstood something?
Thanks
It will automatically use it as needed. So if you declare a register variable like DIM VAR1 #R0. it you can use VAR1 anywhere to replace a register whether it be just the register number or the #Rn tag
That REGLOD would store 1 in register 5 and yes 4 and 5 are equivalent.