work around OpenEmulator bug that inconveniently switches out of DHGR mode

This commit is contained in:
4am 2020-03-25 17:31:18 -04:00
parent 4b5fad0c75
commit 958746981e
2 changed files with 12 additions and 0 deletions

View File

@ -81,6 +81,8 @@ DecompressHGR
DecompressDHGR
jsr DecompressHGR
sta WRITEMAINMEM
jsr DHGRMode ; OpenEmulator incorrectly switches out of
; DHGR mode during accelerated decompression
lda #$60
sta PageFrom+2
lda #$40

View File

@ -6,6 +6,7 @@
; Public functions
; - Home
; - BlankDHGR
; - DHGRMode
; - IsSearchKey
; - IsUpDownOrRightArrow
;
@ -68,6 +69,15 @@ BlankDHGR
jsr ClearHGR1 ; clear hi-res screen 1 in auxmem
sta WRITEMAINMEM
; /!\ execution falls through here to DHGRMode
;------------------------------------------------------------------------------
; DHGRMode
; switch to DHGR mode (HARDER THAN IT SOUNDS)
;
; in: none
; out: none
;------------------------------------------------------------------------------
DHGRMode
; magic sequence to set colour mode on an RGB card
; SET80VID clears the RGB-card shift-register
; DHIRESON/OFF shifts that bit into the mode register