mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Support old one-argument sound_duty macro, similar to callab/callba legacy support
This commit is contained in:
parent
c66d195089
commit
10a1e6c860
@ -72,7 +72,11 @@ soundinput: macro
|
|||||||
enum sound_duty_cmd ; $de
|
enum sound_duty_cmd ; $de
|
||||||
sound_duty: macro
|
sound_duty: macro
|
||||||
db sound_duty_cmd
|
db sound_duty_cmd
|
||||||
|
if _NARG == 4
|
||||||
db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) ; duty sequence
|
db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) ; duty sequence
|
||||||
|
else
|
||||||
|
db \1 ; one-byte duty value for legacy support
|
||||||
|
endc
|
||||||
endm
|
endm
|
||||||
|
|
||||||
enum togglesfx_cmd ; $df
|
enum togglesfx_cmd ; $df
|
||||||
|
Loading…
Reference in New Issue
Block a user