-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIRQ.asm
More file actions
48 lines (40 loc) · 876 Bytes
/
IRQ.asm
File metadata and controls
48 lines (40 loc) · 876 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
40
41
42
43
44
45
46
47
48
IRQ_Initialise
sei
lda #<IRQ_Main
sta sysIntVectorLo_0314
lda #>IRQ_Main
sta sysIntVectorHi_0315
cli
rts
IRQ_Main
jsr IRQ_PlaySound1
jsr IRQ_PlaySound2
jsr IRQ_PlaySound3
jmp krnINTERRUPT
IRQ_PlaySound1
dec voice1Counter
beq .PlayV1Sound
rts
.PlayV1Sound
lda voice1Delay
sta voice1Counter
jsr Sound_PlaySound1
rts
IRQ_PlaySound2
dec voice2Counter
beq .PlayV2Sound
rts
.PlayV2Sound
lda voice2Delay
sta voice2Counter
jsr Sound_PlaySound2
rts
IRQ_PlaySound3
dec voice3Counter
beq .PlayV3Sound
rts
.PlayV3Sound
lda voice3Delay
sta voice3Counter
jsr Sound_PlaySound3
rts