111 lines
1.5 KiB
ArmAsm
Raw Normal View History

2023-10-28 19:13:02 -04:00
; Transmission
2023-10-28 17:28:52 -04:00
;
; by deater (Vince Weaver) <vince@deater.net>
.include "../zp.inc"
.include "../hardware.inc"
.include "../qload.inc"
.include "../music.inc"
2023-10-28 17:28:52 -04:00
mod7_table = $1c00
div7_table = $1d00
hposn_low = $1e00
hposn_high = $1f00
2023-10-28 19:13:02 -04:00
spheres_start:
2023-10-28 17:28:52 -04:00
;=====================
; initializations
;=====================
; debug
lda #68
sta current_pattern_smc+1
jsr pt3_set_pattern
2023-11-01 23:51:57 -04:00
; decompress audio to $6000
lda #<transmission_data
sta zx_src_l+1
lda #>transmission_data
sta zx_src_h+1
lda #$60
jsr zx02_full_decomp
; play audio
lda #$00
sta BTC_L
lda #$60
sta BTC_H
sei ; stop music
ldx #11
jsr play_audio
cli
2023-10-28 17:28:52 -04:00
;===================
; 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
2023-10-28 19:13:02 -04:00
lda #<spheres_data
2023-10-28 17:28:52 -04:00
sta zx_src_l+1
2023-10-28 19:13:02 -04:00
lda #>spheres_data
2023-10-28 17:28:52 -04:00
sta zx_src_h+1
lda #$60
jsr zx02_full_decomp
lda #0
sta COUNT
sta DRAW_PAGE
2023-10-28 19:13:02 -04:00
; copy to main
2023-10-28 17:28:52 -04:00
lda #$60
jsr hgr_copy
bit PAGE1
spheres_loop:
lda #72
jsr wait_for_pattern
bcc spheres_loop
2023-10-28 17:28:52 -04:00
2023-10-28 19:13:02 -04:00
spheres_done:
2023-10-28 17:28:52 -04:00
rts
.include "../wait_keypress.s"
.include "../zx02_optim.s"
; .include "../hgr_table.s"
.include "../hgr_clear_screen.s"
.include "../hgr_copy_fast.s"
2023-11-01 23:51:57 -04:00
.include "../audio.s"
.include "../irq_wait.s"
2023-10-28 17:28:52 -04:00
2023-10-28 19:13:02 -04:00
spheres_data:
.incbin "graphics/spheres.hgr.zx02"
2023-10-28 17:28:52 -04:00
2023-11-01 23:51:57 -04:00
transmission_data:
.incbin "audio/transmission.btc.zx02"