mirror of
https://github.com/pret/pokecrystal.git
synced 2026-08-04 09:49:57 -05:00
Some checks are pending
CI / build (push) Waiting to run
- Use single-quoted character literals or `CHARVAL` when you need
a character's numeric value; using strings as numbers is deprecated
- Use `?` to silence a node in warning/error location backtraces
- Use `===` and `!==` instead of `STRCMP`, and `++` instead of `STRCAT`
- Use `__SCOPE__` instead of checking for `..` and `.` separately
- Use `#string` instead of `"{string}"`
- All programs (rgbasm, rgblink, rgbfix, rgbgfx) support `-W` warnings
- `rgbgfx --colors dmg` is short for `rgbgfx --colors dmg=e4`
18 lines
260 B
NASM
18 lines
260 B
NASM
; Predef function calls
|
|
|
|
MACRO? lda_predef
|
|
; Some functions load the predef id
|
|
; without immediately calling Predef.
|
|
ld a, (\1Predef - PredefPointers) / 3
|
|
ENDM
|
|
|
|
MACRO? predef
|
|
lda_predef \1
|
|
call Predef
|
|
ENDM
|
|
|
|
MACRO? predef_jump
|
|
lda_predef \1
|
|
jp Predef
|
|
ENDM
|