mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Format music macros like movement macros
This commit is contained in:
parent
e025ab9db0
commit
4b4c53c7ae
@ -1138,7 +1138,7 @@ ParseMusic:
|
|||||||
call GetMusicByte ; store next byte in a
|
call GetMusicByte ; store next byte in a
|
||||||
cp endchannel_cmd
|
cp endchannel_cmd
|
||||||
jr z, .endchannel
|
jr z, .endchannel
|
||||||
cp first_music_cmd
|
cp FIRST_MUSIC_CMD
|
||||||
jr c, .readnote
|
jr c, .readnote
|
||||||
; then it's a command
|
; then it's a command
|
||||||
.readcommand
|
.readcommand
|
||||||
@ -1350,7 +1350,7 @@ ParseMusicCommand:
|
|||||||
; reload command
|
; reload command
|
||||||
ld a, [wCurMusicByte]
|
ld a, [wCurMusicByte]
|
||||||
; get command #
|
; get command #
|
||||||
sub first_music_cmd
|
sub FIRST_MUSIC_CMD
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
; seek command pointer
|
; seek command pointer
|
||||||
|
@ -20,13 +20,16 @@ noise: MACRO
|
|||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
; MusicCommands indexes (see audio/engine.asm)
|
; MusicCommands indexes (see audio/engine.asm)
|
||||||
enum_start $d8
|
enum_start $d0, +8
|
||||||
first_music_cmd EQU __enum__ + -8
|
FIRST_MUSIC_CMD EQU __enum__
|
||||||
|
|
||||||
|
enum octave_cmd ; $d0
|
||||||
octave: MACRO
|
octave: MACRO
|
||||||
db first_music_cmd + 8 - (\1)
|
db octave_cmd | 8 - (\1)
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
__enumdir__ = +1
|
||||||
|
|
||||||
enum notetype_cmd ; $d8
|
enum notetype_cmd ; $d8
|
||||||
notetype: MACRO
|
notetype: MACRO
|
||||||
db notetype_cmd
|
db notetype_cmd
|
||||||
|
Loading…
Reference in New Issue
Block a user