data.s
2.58 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
.arm
.align
.data
.global notesettings
.global octave
.global key
.global keystates
.global soundRegUsage
.global setupBit
.global synthText
.global setupText
.global fontBMP
.global fontPAL
#include "../src/defines.h"
.ltorg
octave:
.word 4 @ current octave
key:
.word 0 @ 0=C 1=G
.word 0 @ 0=maj 1=min
keystates:
.word 0 @L
.word 0 @Left
.word 0 @Down
.word 0 @Right
.word 0 @B
.word 0 @A
.word 0 @R
.word 0 @Select
.word 0 @Start
fontBMP:
.incbin "../gfx/8x8font.img.bin"
fontPAL:
.incbin "../gfx/8x8font.pal.bin"
.align 1
synthText: @@ Map 1
.ascii "@@@@@@@ SynthGBA Play @@@@@@@@--"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii "Select + Start = maj <-> min --"
.ascii " Select + L + R = Setup --"
.ascii "Select + <- or -> = Key Change--"
.ascii "Select + ^ or v = Octv Change --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " --"
notesettings:
.hword 0b1111010011111111 @Note Settings 1
.hword 0b1000000000000000 @Note Settings 2
.hword 0 @ length flag
setupText: @ Map 0
.ascii "@@@@@@@ SynthGBA Setup @@@@@@@--"
.ascii " --"
.ascii " --"
.ascii " --"
.ascii " IIIIMTTTDDLLLLLL --"
.ascii " --"
.ascii " 0b0000000000000000 --"
.ascii " ^ --"
.ascii " --"
.ascii " L = Sound Length --"
.ascii " D = Wave Duty Cycle --"
.ascii " T = Envelope Step Time --"
.ascii " M = Envelope Mode --"
.ascii " I = Initial Envelope Value --"
.ascii " --"
.ascii " --"
.ascii " Press Start to begin. --"
.ascii " --"
.ascii " --"
.ascii "L<= Press B to toggle len flag--"
setupBit:
.hword 0b0000000000000001 @ Don't change unless you want the cursor to be offset wrong
soundRegUsage:
.hword 0
@ vim: syntax=armasm