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
sei ; timing sensitive
jsr @jiggerypokery
sta $C05B ; fix colouring
plp ; restore interrupt state
lda gMachineInDHGRMode
bne + ; DHGR mode doesn't need fix
sta $C05B ; fix HGR-mode colouring
+ plp ; restore interrupt state
pla
sta $0
rts