89 lines
1.2 KiB
ArmAsm
Raw Normal View History

2023-10-28 23:38:44 -04:00
; Leaves / New Way to Scroll
;
; by deater (Vince Weaver) <vince@deater.net>
.include "../zp.inc"
.include "../hardware.inc"
.include "../qload.inc"
.include "../music.inc"
2023-10-28 23:38:44 -04:00
mod7_table = $1c00
div7_table = $1d00
hposn_low = $1e00
hposn_high = $1f00
leaves_start:
;=====================
; initializations
;=====================
2023-10-28 23:38:44 -04:00
;===================
; Load graphics
;===================
bit SET_GR
bit HIRES
bit FULLGR
bit PAGE1
lda #0
jsr hgr_page1_clearscreen
jsr hgr_page2_clearscreen
bit PAGE2
; load image offscreen $6000
lda #<leaves_data
sta zx_src_l+1
lda #>leaves_data
sta zx_src_h+1
2023-11-01 20:53:47 -04:00
lda #$20
2023-10-28 23:38:44 -04:00
jsr zx02_full_decomp
2023-11-01 20:53:47 -04:00
; lda #0
; sta COUNT
; sta DRAW_PAGE
2023-10-28 23:38:44 -04:00
2023-11-01 20:53:47 -04:00
; lda #$60
; jsr hgr_copy
2023-10-28 23:38:44 -04:00
2023-11-01 20:53:47 -04:00
; bit PAGE1
2023-10-28 23:38:44 -04:00
; jsr wait_until_keypress
leaves_loop:
2023-11-01 20:53:47 -04:00
bit PAGE1
2023-11-01 20:53:47 -04:00
lda #25
jsr wait_ticks
2023-11-01 20:53:47 -04:00
bit PAGE2
lda #25
jsr wait_ticks
2023-11-01 20:53:47 -04:00
lda #34
jsr wait_for_pattern
bcc leaves_loop
2023-10-28 23:38:44 -04:00
leaves_done:
rts
.align $100
.include "../wait_keypress.s"
; .include "../zx02_optim.s"
2023-10-28 23:38:44 -04:00
; .include "../hgr_table.s"
.include "../hgr_clear_screen.s"
.include "../hgr_copy_fast.s"
leaves_data:
2023-11-01 20:53:47 -04:00
.incbin "graphics/leaves_combined.hgr.zx02"
2023-10-28 23:38:44 -04:00
.include "../irq_wait.s"