mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-07 08:30:20 +00:00
lemm: draw menu to both pages
This commit is contained in:
parent
2d303093d6
commit
6bacbe9fdb
|
@ -21,6 +21,12 @@ hgr_hlin:
|
||||||
|
|
||||||
tay ; get row info for Y1 into GBASL/GBASH
|
tay ; get row info for Y1 into GBASL/GBASH
|
||||||
lda hposn_high,Y
|
lda hposn_high,Y
|
||||||
|
|
||||||
|
; eor #$00 draws on page2
|
||||||
|
; eor #$60 draws on page1
|
||||||
|
hgr_hlin_page_smc:
|
||||||
|
eor #$00
|
||||||
|
|
||||||
sta GBASH
|
sta GBASH
|
||||||
lda hposn_low,Y
|
lda hposn_low,Y
|
||||||
sta GBASL
|
sta GBASL
|
||||||
|
@ -198,6 +204,15 @@ hgr_colortbl:
|
||||||
.byte $00,$2A,$55,$7F
|
.byte $00,$2A,$55,$7F
|
||||||
.byte $80,$AA,$D5,$FF
|
.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
|
; notes
|
||||||
; 4+3
|
; 4+3
|
||||||
; 0000 CCCC 0000 1111
|
; 0000 CCCC 0000 1111
|
||||||
|
|
|
@ -45,6 +45,8 @@ hgr_vlin_loop:
|
||||||
current_row_smc:
|
current_row_smc:
|
||||||
ldy #$dd ; get row info for Y1 into GBASL/GBASH
|
ldy #$dd ; get row info for Y1 into GBASL/GBASH
|
||||||
lda hposn_high,Y
|
lda hposn_high,Y
|
||||||
|
hgr_vlin_page_smc:
|
||||||
|
eor #$00
|
||||||
sta GBASH
|
sta GBASH
|
||||||
lda hposn_low,Y
|
lda hposn_low,Y
|
||||||
sta GBASL
|
sta GBASL
|
||||||
|
@ -75,3 +77,8 @@ vlin_masks:
|
||||||
.byte $81,$82,$84,$88,$90,$A0,$C0
|
.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
|
||||||
|
|
|
@ -57,6 +57,17 @@ draw_button:
|
||||||
adc #15
|
adc #15
|
||||||
sta button_smc4+1
|
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:
|
button_smc1:
|
||||||
ldx #144
|
ldx #144
|
||||||
lda #168
|
lda #168
|
||||||
|
|
Loading…
Reference in New Issue
Block a user