03-31-2009, 06:55 AM
LCD Wrote:DIM'ed variable should create a label in any case. At least there could be a option to do so.Hey! That's a GREAT idea! :!: Thanks a lot. I think I could implement them as a macro so you cuould do something like:
Code:
Function f
DIM a as byte
...
End Function
The local variable 'a' (parameters are also local variables in the end) could be translated as:
Code:
#define _f_a ix + 3
Code:
ld a, (_f_a)
add a, 2
ld (_f_a), a ; LET a = a + 2
¿What do you think?