summaryrefslogtreecommitdiff
path: root/constants
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2015-02-22 13:25:04 -0800
committerMarcus Huderle <huderlem@gmail.com>2015-02-22 13:25:04 -0800
commit3292c7d4d1d3f7acec663688bdf10fe3fefd43fe (patch)
tree39b00e182da09a9e65839e2aba0cf11a0cd4402d /constants
parentab90af156e9ce2f4432506623afb6385db6293b1 (diff)
Dump and document Sound Test selection routines.
Diffstat (limited to 'constants')
-rwxr-xr-xconstants/joy_constants.asm17
-rwxr-xr-xconstants/song_constants.asm2
-rwxr-xr-xconstants/sound_effect_constants.asm1
3 files changed, 20 insertions, 0 deletions
diff --git a/constants/joy_constants.asm b/constants/joy_constants.asm
new file mode 100755
index 0000000..1ece577
--- /dev/null
+++ b/constants/joy_constants.asm
@@ -0,0 +1,17 @@
+BIT_A_BUTTON EQU 0
+BIT_B_BUTTON EQU 1
+BIT_SELECT EQU 2
+BIT_START EQU 3
+BIT_D_RIGHT EQU 4
+BIT_D_LEFT EQU 5
+BIT_D_UP EQU 6
+BIT_D_DOWN EQU 7
+
+A_BUTTON EQU %00000001
+B_BUTTON EQU %00000010
+SELECT EQU %00000100
+START EQU %00001000
+D_RIGHT EQU %00010000
+D_LEFT EQU %00100000
+D_UP EQU %01000000
+D_DOWN EQU %10000000
diff --git a/constants/song_constants.asm b/constants/song_constants.asm
index aa95c9c..b1aae4d 100755
--- a/constants/song_constants.asm
+++ b/constants/song_constants.asm
@@ -1,3 +1,5 @@
+NUM_SONGS EQU $17
+
MUSIC_NOTHING_0F EQU $00
MUSIC_BLUE_FIELD EQU $01
MUSIC_CATCH_EM_RED EQU $02
diff --git a/constants/sound_effect_constants.asm b/constants/sound_effect_constants.asm
new file mode 100755
index 0000000..a3cd474
--- /dev/null
+++ b/constants/sound_effect_constants.asm
@@ -0,0 +1 @@
+NUM_SOUND_EFFECTS EQU $4e