Fix DHGR/HGR coloring on //c+ (#131)

This commit is contained in:
frankmilliron 2020-03-13 19:33:41 -07:00 committed by GitHub
parent bd85b43606
commit 4d127bdbab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,8 +267,10 @@ iicplus !pseudopc DisableAccelerator {
php php
sei ; timing sensitive sei ; timing sensitive
jsr @jiggerypokery jsr @jiggerypokery
sta $C05B ; fix colouring lda gMachineInDHGRMode
plp ; restore interrupt state bne + ; DHGR mode doesn't need fix
sta $C05B ; fix HGR-mode colouring
+ plp ; restore interrupt state
pla pla
sta $0 sta $0
rts rts