dos33fsprogs/demos/second/gr_pageflip.s

25 lines
503 B
ArmAsm
Raw Normal View History

2023-08-15 20:02:53 +00:00
;==========
; page_flip
;==========
page_flip:
lda DISP_PAGE ; 3
beq page_flip_show_1 ; 2nt/3
page_flip_show_0:
2023-09-18 01:24:41 +00:00
bit PAGE1 ; 4
2023-08-15 20:02:53 +00:00
lda #4 ; 2
sta DRAW_PAGE ; DRAW_PAGE=1 ; 3
lda #0 ; 2
sta DISP_PAGE ; DISP_PAGE=0 ; 3
rts ; 6
page_flip_show_1:
2023-09-18 01:24:41 +00:00
bit PAGE2 ; 4
2023-08-15 20:02:53 +00:00
sta DRAW_PAGE ; DRAW_PAGE=0 ; 3
lda #1 ; 2
sta DISP_PAGE ; DISP_PAGE=1 ; 3
rts ; 6
;====================
; DISP_PAGE=0 26
; DISP_PAGE=1 24