mirror of
https://github.com/Klaus2m5/6502_EhBASIC_V2.22.git
synced 2024-06-02 09:41:28 +00:00
change to bugs and quirks
This commit is contained in:
parent
6a5cd71787
commit
fe80018eaf
|
@ -49,15 +49,9 @@ LAB_20DC
|
||||||
|
|
||||||
3. Output of some functions limited to integers is negative.
|
3. Output of some functions limited to integers is negative.
|
||||||
|
|
||||||
This is not a bug but documented behavior. However it is inconsistent with how
|
This is not a bug but documented behavior.
|
||||||
EhBASIC uses addresses in PEEK(), POKE, DEEK() & DOKE. They all expect an
|
|
||||||
unsigned 16 bit integer as the address. However SADD() & VARPTR() return
|
|
||||||
addresses as signed integers and addresses above $7fff will become negative.
|
|
||||||
The same is true for data from a FRE() & DEEK() function.
|
|
||||||
|
|
||||||
If you want to use PEEK(SADD()) with large RAM you must write:
|
Affected functions FRE(), SADD(), VARPTR(), DEEK()
|
||||||
|
|
||||||
? PEEK(SADD(a$)-(SADD(a$)<0)*$10000)
|
|
||||||
|
|
||||||
If you want to use FRE() with large RAM you must write:
|
If you want to use FRE() with large RAM you must write:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user