-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSN76496.i
63 lines (50 loc) · 1.04 KB
/
SN76496.i
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
;@
;@ SN76496.i
;@ K2Audio
;@
;@ Created by Fredrik Ahlström on 2008-04-02.
;@ Copyright © 2008-2024 Fredrik Ahlström. All rights reserved.
;@
;@ ASM header for the K2GE Audio emulator
;@
#if !__ASSEMBLER__
#error This header file is only for use in assembly files!
#endif
;@ SN76496.s
.struct 0
snStateStart:
ch0Frq: .short 0
ch0Cnt: .short 0
ch1Frq: .short 0
ch1Cnt: .short 0
ch2Frq: .short 0
ch2Cnt: .short 0
ch3Frq: .short 0
ch3Cnt: .short 0
currentBits: .long 0
rng: .long 0
noiseFB: .long 0
snAttChg: .byte 0
snLastReg: .byte 0
snLastRegL: .byte 0
snPadding: .space 1
ch0Reg: .short 0
ch0Att: .short 0
ch1Reg: .short 0
ch1Att: .short 0
ch2Reg: .short 0
ch2Att: .short 0
ch3Reg: .short 0
ch3Att: .short 0
ch0RegL: .short 0
ch0AttL: .short 0
ch1RegL: .short 0
ch1AttL: .short 0
ch2RegL: .short 0
ch2AttL: .short 0
ch3RegL: .short 0
ch3AttL: .short 0
snStateEnd:
calculatedVolumes: .space 16*2*2
snSize:
;@----------------------------------------------------------------------------