You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Add a "mobile" directive for dummied-out mobile adapter functions.
This commit is contained in:
21
macros.asm
21
macros.asm
@@ -8,6 +8,8 @@ INCLUDE "macros/movement.asm"
|
|||||||
INCLUDE "macros/map.asm"
|
INCLUDE "macros/map.asm"
|
||||||
INCLUDE "macros/predef.asm"
|
INCLUDE "macros/predef.asm"
|
||||||
INCLUDE "macros/rst.asm"
|
INCLUDE "macros/rst.asm"
|
||||||
|
INCLUDE "macros/mobile.asm"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RGB: MACRO
|
RGB: MACRO
|
||||||
@@ -46,15 +48,24 @@ dn: MACRO
|
|||||||
endr
|
endr
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
dx: MACRO
|
||||||
|
x = 8 * ((\1) - 1)
|
||||||
|
rept \1
|
||||||
|
db ((\2) >> x) & $ff
|
||||||
|
x = x + -8
|
||||||
|
endr
|
||||||
|
ENDM
|
||||||
|
|
||||||
dt: MACRO ; three-byte (big-endian)
|
dt: MACRO ; three-byte (big-endian)
|
||||||
db ((\1) >> 16) & $ff
|
dx 3, \1
|
||||||
db ((\1) >> 8) & $ff
|
ENDM
|
||||||
db (\1) & $ff
|
|
||||||
|
dd: MACRO ; four-byte (big-endian)
|
||||||
|
dx 4, \1
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
bigdw: MACRO ; big-endian word
|
bigdw: MACRO ; big-endian word
|
||||||
db (\1) / $100
|
dx 2, \1
|
||||||
db (\1) % $100
|
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
|
|
||||||
|
2
macros/mobile.asm
Normal file
2
macros/mobile.asm
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
; Many mobile functions were dummied out in localization.
|
||||||
|
mobile EQUS "ret"
|
Reference in New Issue
Block a user