Skip to content

Commit 998e01a

Browse files
committed
start APU common code
1 parent 5caf0bf commit 998e01a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

common/apu.inc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
;;
2+
;; Common use APU related addresses, code, and tools
3+
;;
4+
5+
;; Addresses on the Main Memory Map
6+
;; APU addresses
7+
8+
SQUARE1_VOLUME = $4000
9+
SQUARE1_SWEEP = $4001
10+
SQUARE1_LOW = $4002
11+
SQUARE1_HIGH = $4003
12+
13+
SQUARE2_VOLUME = $4004
14+
SQUARE2_SWEEP = $4005
15+
SQUARE2_LOW = $4006
16+
SQUARE2_HIGH = $4007
17+
18+
TRIANGLE_CTR = $4008
19+
TRIANGLE_LOW = $400A
20+
TRIANGLE_HIGH = $400B
21+
22+
NOISE_VOLUME = $400C
23+
NOISE_LOW = $400E
24+
NOISE_HIGH = $400F
25+
26+
DMC_FREQ = $4010
27+
DMC_RAW = $4011
28+
DMC_START = $4012
29+
DMC_LEN = $4013
30+
31+
SOUND_ENABLE = $4015

0 commit comments

Comments
 (0)