You are going to have to explain in more detail how you mean. It is impossible to know something that you don't know. If you don't know an address then that address can not be used.Am I correct in that I don't find a way to assign an address to bPtr without already knowing the address?
#Define AddressOfB(n) n
#Define AddressOfW(n) n * 2
bPtr = AddressOfB(2) ; b2 = $12 (18)
@bPtr = $12
bPtr = AddressOfW(3) ; w3 = $ABCD (43981)
@bPtrInc = $CD ; lsb
@bPtr = $AB ; msb
SerTxd( "b2=", #b2, " w3=", #w3, CR, LF )
Two very important programming axioms:You're correct except when one is trying to write transportable code. However, as usual there is a work around.
No thanks, it's as obscure as it's going to get now in my code.You can use "READTABLE 0, ptr" for ptr = Table(0) and "READTABLE 0, @ptr" for @ptr = Table(0), but it's not at all clear what you would be expecting "ptr = table 0" to do.
Stan, I've bought (2) 3.2" Nextion displays. They do work.I got a Nextion 3.5" intelligent display in the post. Did you buy one Texas?
You will keep getting a syntax error because whatever it is you are trying to is not anything which the compiler understands.I tried ptr= table 0, () and got a syntax error. I'll try again.
Being able to identify and use free program space only applied to the oldest PICAXE chips where the entire program and data was held in the 128 or 256 bytes of on-chip EEPROM.You mentioned an end of program var I think ... Can you use free program space and if so where does it start.