Skip to content

Commit

Permalink
[KERNAL] remove support for non-FX VERA versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur committed Mar 12, 2024
1 parent 2d07153 commit fda8ded
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions kernal/drivers/x16/screen.s
Original file line number Diff line number Diff line change
Expand Up @@ -600,24 +600,12 @@ screen_save_state:
ply
lda VERA_CTRL
pha
; Begin temp code to support old vera, must be 0.3.x or higher
lda #%01111110
sta VERA_CTRL
lda $9f29
cmp #'V'
bne :+
lda $9f2a
bne :+
lda $9f2b
cmp #$03
bcc :+
; End temp code to support old vera
lda #%00000100
sta VERA_CTRL
lda $9f29
pha
stz $9f29
: stz VERA_CTRL
stz VERA_CTRL
lda VERA_ADDR_L
pha
lda VERA_ADDR_M
Expand All @@ -641,23 +629,11 @@ screen_restore_state:
sta VERA_ADDR_M
pla
sta VERA_ADDR_L
; Begin temp code to support old vera
lda #%01111110
sta VERA_CTRL
lda $9f29
cmp #'V'
bne :+
lda $9f2a
bne :+
lda $9f2b
cmp #$03
bcc :+
; End temp code to support old vera
lda #%00000100
sta VERA_CTRL
pla
sta $9f29
: pla
pla
sta VERA_CTRL
phy
phx
Expand Down

0 comments on commit fda8ded

Please sign in to comment.