diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-11-25 21:32:17 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-11-25 21:32:17 +0100 |
commit | 847bfa15404fa8f33f3ae4f43dcd7586c3126d2c (patch) | |
tree | aef7cd4f83fd9c9bff6f0cbaca501c89458be440 /asm/macros/battle_script.inc | |
parent | fe658cc2fd673db774ca533f8bafde7210774c42 (diff) |
add more battlescript macros
Diffstat (limited to 'asm/macros/battle_script.inc')
-rw-r--r-- | asm/macros/battle_script.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/asm/macros/battle_script.inc b/asm/macros/battle_script.inc index 0bbd1dc0b..55ec0438e 100644 --- a/asm/macros/battle_script.inc +++ b/asm/macros/battle_script.inc @@ -1237,3 +1237,19 @@ setbyte \dst + 2, (\value >> 16) & 0xFF setbyte \dst + 3, (\value >> 24) & 0xFF .endm + + .macro copybyte dst, src + copyarray \dst, \src, 0x1 + .endm + + .macro copyword dst, src + copyarray \dst, \src, 0x4 + .endm + + .macro jumpifbytenotequal byte1, byte2, jumpptr + jumpifarraynotequal \byte1, \byte2, 0x1, \jumpptr + .endm + + .macro jumpifbyteequal byte1, byte2, jumpptr + jumpifarrayequal \byte1, \byte2, 0x1, \jumpptr + .endm |