mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-10-06 23:55:47 +00:00
86 lines
1.1 KiB
ArmAsm
86 lines
1.1 KiB
ArmAsm
; Polar Bear
|
|
|
|
; do the animated bounce if possible
|
|
|
|
;
|
|
; by deater (Vince Weaver) <vince@deater.net>
|
|
|
|
.include "../zp.inc"
|
|
.include "../hardware.inc"
|
|
.include "../qload.inc"
|
|
|
|
mod7_table = $1c00
|
|
div7_table = $1d00
|
|
hposn_low = $1e00
|
|
hposn_high = $1f00
|
|
|
|
polar_start:
|
|
;=====================
|
|
; initializations
|
|
;=====================
|
|
|
|
;===================
|
|
; Load graphics
|
|
;===================
|
|
load_loop:
|
|
|
|
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 #<polar_data
|
|
sta zx_src_l+1
|
|
lda #>polar_data
|
|
sta zx_src_h+1
|
|
lda #$60
|
|
jsr zx02_full_decomp
|
|
|
|
|
|
lda #0
|
|
sta COUNT
|
|
sta DRAW_PAGE
|
|
|
|
ship_sprite_loop:
|
|
|
|
lda #$60
|
|
jsr hgr_copy
|
|
|
|
bit PAGE1
|
|
|
|
jsr wait_until_keypress
|
|
|
|
polar_done:
|
|
rts
|
|
|
|
|
|
.align $100
|
|
.include "../wait_keypress.s"
|
|
.include "../zx02_optim.s"
|
|
; .include "../hgr_table.s"
|
|
.include "../hgr_clear_screen.s"
|
|
.include "../hgr_copy_fast.s"
|
|
|
|
|
|
|
|
; wait A * 1/50s
|
|
wait_irq:
|
|
; lda #50
|
|
sta IRQ_COUNTDOWN
|
|
wait_irq_loop:
|
|
lda IRQ_COUNTDOWN
|
|
bne wait_irq_loop
|
|
rts
|
|
|
|
polar_data:
|
|
.incbin "graphics/polar2.hgr.zx02"
|
|
|