mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-10 08:54:51 +00:00
48 lines
855 B
ArmAsm
48 lines
855 B
ArmAsm
|
|
;=============================
|
|
; Setup
|
|
;=============================
|
|
pt3_setup:
|
|
|
|
;===============
|
|
; init variables
|
|
;===============
|
|
|
|
lda #0
|
|
sta DONE_PLAYING
|
|
sta LOOP
|
|
|
|
;=======================
|
|
; Detect mockingboard
|
|
;========================
|
|
|
|
; Note, we do this, but then ignore it, as sometimes
|
|
; the test fails and then you don't get music.
|
|
; In theory this could do bad things if you had something
|
|
; easily confused in slot4, but that's probably not an issue.
|
|
|
|
jsr mockingboard_detect_slot4
|
|
|
|
;=========================
|
|
; Setup Interrupt Handler
|
|
;=========================
|
|
|
|
jsr mockingboard_init
|
|
jsr pt3_setup_interrupt
|
|
|
|
;============================
|
|
; Reset the Mockingboard
|
|
;============================
|
|
|
|
|
|
jsr reset_ay_both
|
|
jsr clear_ay_both
|
|
|
|
;==================
|
|
; init song
|
|
;==================
|
|
|
|
jsr pt3_init_song
|
|
|
|
rts
|