You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Define first_music_cmd
This replaces the uses of $d0 in the audio engine with proper constants.
This commit is contained in:
@@ -21,12 +21,13 @@ ENDM
|
||||
|
||||
; MusicCommands indexes (see audio/engine.asm)
|
||||
enum_start $d8
|
||||
first_music_cmd EQU __enum__ + -8
|
||||
|
||||
enum notetype_cmd ; $d8
|
||||
octave: MACRO
|
||||
db notetype_cmd - (\1)
|
||||
db first_music_cmd + 8 - (\1)
|
||||
ENDM
|
||||
|
||||
enum notetype_cmd ; $d8
|
||||
notetype: MACRO
|
||||
db notetype_cmd
|
||||
db \1 ; note_length
|
||||
|
Reference in New Issue
Block a user