Support old one-argument sound_duty macro, similar to callab/callba legacy support

This commit is contained in:
Remy Oukaour 2017-12-24 12:52:05 -05:00
parent c66d195089
commit 10a1e6c860
1 changed files with 4 additions and 0 deletions

View File

@ -72,7 +72,11 @@ soundinput: macro
enum sound_duty_cmd ; $de
sound_duty: macro
db sound_duty_cmd
if _NARG == 4
db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) ; duty sequence
else
db \1 ; one-byte duty value for legacy support
endc
endm
enum togglesfx_cmd ; $df