mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Merge pull request #556 from DizzyEggg/patch-2
Fix two battle scripting macros
This commit is contained in:
commit
e95140270b
@ -1341,15 +1341,15 @@
|
|||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro sethword dst:req, value:req
|
.macro sethword dst:req, value:req
|
||||||
setbyte \dst, \value & 0xFF
|
setbyte \dst, (\value) & 0xFF
|
||||||
setbyte \dst + 1, (\value >> 8) & 0xFF
|
setbyte \dst + 1, ((\value) >> 8) & 0xFF
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro setword dst:req, value:req
|
.macro setword dst:req, value:req
|
||||||
setbyte \dst, \value & 0xFF
|
setbyte \dst, (\value) & 0xFF
|
||||||
setbyte \dst + 1, (\value >> 8) & 0xFF
|
setbyte \dst + 1, ((\value) >> 8) & 0xFF
|
||||||
setbyte \dst + 2, (\value >> 16) & 0xFF
|
setbyte \dst + 2, ((\value) >> 16) & 0xFF
|
||||||
setbyte \dst + 3, (\value >> 24) & 0xFF
|
setbyte \dst + 3, ((\value) >> 24) & 0xFF
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro copybyte dst:req, src:req
|
.macro copybyte dst:req, src:req
|
||||||
|
Loading…
Reference in New Issue
Block a user