add more battlescript macros
This commit is contained in:
1 parent
fe658cc2fd
commit
847bfa1540
2 files changed
+39
-29
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user