maziac / DeZog

Visual Studio Code Debugger for Z80/ZX Spectrum.
MIT License
210 stars 34 forks source link

zsim/sna file. SP 2 bytes too low. #52

Closed maziac closed 3 years ago

maziac commented 3 years ago

If the SNA file contains e.g. 0x8FFB as address this is put in SP and the program is started at the location SP points to. However before starting the program the SP needs to be adjusted by adding 2. I.e. a RETN instruction should be simulated. (Additionally copy IFF2 to IFF1).

maziac commented 3 years ago

Fixed in 2.2.3.