mirror of
https://github.com/a2-4am/4cade.git
synced 2025-01-11 22:30:59 +00:00
work around OpenEmulator bug that inconveniently switches out of DHGR mode
This commit is contained in:
parent
4b5fad0c75
commit
958746981e
@ -81,6 +81,8 @@ DecompressHGR
|
|||||||
DecompressDHGR
|
DecompressDHGR
|
||||||
jsr DecompressHGR
|
jsr DecompressHGR
|
||||||
sta WRITEMAINMEM
|
sta WRITEMAINMEM
|
||||||
|
jsr DHGRMode ; OpenEmulator incorrectly switches out of
|
||||||
|
; DHGR mode during accelerated decompression
|
||||||
lda #$60
|
lda #$60
|
||||||
sta PageFrom+2
|
sta PageFrom+2
|
||||||
lda #$40
|
lda #$40
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
; Public functions
|
; Public functions
|
||||||
; - Home
|
; - Home
|
||||||
; - BlankDHGR
|
; - BlankDHGR
|
||||||
|
; - DHGRMode
|
||||||
; - IsSearchKey
|
; - IsSearchKey
|
||||||
; - IsUpDownOrRightArrow
|
; - IsUpDownOrRightArrow
|
||||||
;
|
;
|
||||||
@ -68,6 +69,15 @@ BlankDHGR
|
|||||||
jsr ClearHGR1 ; clear hi-res screen 1 in auxmem
|
jsr ClearHGR1 ; clear hi-res screen 1 in auxmem
|
||||||
sta WRITEMAINMEM
|
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
|
; magic sequence to set colour mode on an RGB card
|
||||||
; SET80VID clears the RGB-card shift-register
|
; SET80VID clears the RGB-card shift-register
|
||||||
; DHIRESON/OFF shifts that bit into the mode register
|
; DHIRESON/OFF shifts that bit into the mode register
|
||||||
|
Loading…
x
Reference in New Issue
Block a user