mirror of
https://github.com/pret/pokecrystal.git
synced 2026-08-05 02:37:51 -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`
30 lines
485 B
NASM
30 lines
485 B
NASM
; Virtual Console macros
|
|
|
|
MACRO? vc_hook
|
|
if DEF(_CRYSTAL11_VC)
|
|
.VC_\1::
|
|
endc
|
|
ENDM
|
|
|
|
MACRO? vc_patch
|
|
if DEF(_CRYSTAL11_VC)
|
|
assert !DEF(CURRENT_VC_PATCH), "Already started a vc_patch"
|
|
DEF CURRENT_VC_PATCH EQUS "\1"
|
|
.VC_{CURRENT_VC_PATCH}::
|
|
endc
|
|
ENDM
|
|
|
|
MACRO? vc_patch_end
|
|
if DEF(_CRYSTAL11_VC)
|
|
assert DEF(CURRENT_VC_PATCH), "No vc_patch started"
|
|
.VC_{CURRENT_VC_PATCH}_End::
|
|
PURGE CURRENT_VC_PATCH
|
|
endc
|
|
ENDM
|
|
|
|
MACRO? vc_assert
|
|
if DEF(_CRYSTAL11_VC)
|
|
assert \#
|
|
endc
|
|
ENDM
|