-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.asm
More file actions
39 lines (28 loc) · 879 Bytes
/
main.asm
File metadata and controls
39 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;---------------------------
;
; protracker replay test rig
; h0ffman
;
;---------------------------
INCDIR "include"
INCLUDE "hw.i"
section test,code_c
Main:
lea CUSTOM,a6
move.w #$7fff,DMACON(a6)
move.w #$7fff,INTENA(a6)
move.w #0,COLOR00(a6)
move.w #$c000,INTENA(a6) ; enable master interrupt
move.w #$8200,DMACON(a6) ; enable base DMA
sub.l a0,a0 ; vector base, go find it yourself
moveq #0,d1 ; 0 = pal / 1 = ntsc
bsr CIA_Install ; install cia interrupts
lea mod,a0 ; module
bsr mt_init ; init module
st mt_Enable ; enable playback
.forever
bra .forever
rts
include "protracker.asm"
mod:
incbin "failright.mod"