lemm: draw menu to both pages

This commit is contained in:
Vince Weaver 2022-03-14 23:22:32 -04:00
parent 2d303093d6
commit 6bacbe9fdb
3 changed files with 33 additions and 0 deletions

View File

@ -21,6 +21,12 @@ hgr_hlin:
tay ; get row info for Y1 into GBASL/GBASH
lda hposn_high,Y
; eor #$00 draws on page2
; eor #$60 draws on page1
hgr_hlin_page_smc:
eor #$00
sta GBASH
lda hposn_low,Y
sta GBASL
@ -198,6 +204,15 @@ hgr_colortbl:
.byte $00,$2A,$55,$7F
.byte $80,$AA,$D5,$FF
hgr_hlin_page_toggle:
lda hgr_hlin_page_smc+1
eor #$60
sta hgr_hlin_page_smc+1
rts
; notes
; 4+3
; 0000 CCCC 0000 1111

View File

@ -45,6 +45,8 @@ hgr_vlin_loop:
current_row_smc:
ldy #$dd ; get row info for Y1 into GBASL/GBASH
lda hposn_high,Y
hgr_vlin_page_smc:
eor #$00
sta GBASH
lda hposn_low,Y
sta GBASL
@ -75,3 +77,8 @@ vlin_masks:
.byte $81,$82,$84,$88,$90,$A0,$C0
hgr_vlin_page_toggle:
lda hgr_vlin_page_smc+1
eor #$60
sta hgr_vlin_page_smc+1
rts

View File

@ -57,6 +57,17 @@ draw_button:
adc #15
sta button_smc4+1
; draw on both pages
jsr actual_button_draw
jsr hgr_hlin_page_toggle
jsr hgr_vlin_page_toggle
jsr actual_button_draw
jsr hgr_hlin_page_toggle
jsr hgr_vlin_page_toggle
rts
actual_button_draw:
button_smc1:
ldx #144
lda #168