On the code imported from the C64, the only function that mutates poker is PEEK, thus preserving poker inside of PEEK was effective in making POKE happy. X16 additions mutate it in at least 3 more functions (VPEEK, STRPTR, POINTER), so moving the preserve to the POKE statement should fix this logic.
Also removed a misleading comment that is no longer relevant, since (B)LOAD also populates the SYS shadow registers now.
On the code imported from the C64, the only function that mutates
poker
isPEEK
, thus preservingpoker
inside ofPEEK
was effective in makingPOKE
happy. X16 additions mutate it in at least 3 more functions (VPEEK, STRPTR, POINTER), so moving the preserve to thePOKE
statement should fix this logic.Also removed a misleading comment that is no longer relevant, since (B)LOAD also populates the SYS shadow registers now.