Closed neilsf closed 4 years ago
Doesn't PEEK!() work here? I had a similar bug report.
I think that was about the return type of PEEK(). Yes, PEEK() is overloaded for byte and integer return types. That's OK.
However, the address can only be an integer currently, which means it's not intuitive to read/write ZP addresses. A numeric literal under 256 is a byte. The compiler will complain for this.
Currently CASTing is the only way you can PEEK/POKE from/to a ZP address, e. g:
The compiler should allow byte type as address.