Fix zp clear in C128 on exit

This commit is contained in:
drmortalwombat 2024-01-08 20:10:46 +01:00
parent 1abdd1476e
commit bcf19136d4

View File

@ -330,6 +330,9 @@ spexit:
sta $54
lda #0
sta $13
#if defined(__C128__) || defined(__C128B__) || defined(__C128E__)
sta $1a
#endif
lda #$19
sta $16
#if defined(__C128__)
@ -337,7 +340,12 @@ spexit:
sta 0xff00
#elif defined(__PLUS4__)
sta $ff3e
#endif
#if defined(__C128__) || defined(__C128B__) || defined(__C128E__)
lda #0
sta $1b
#endif
#endif
rts
}