RGBDS syntax updates (#358)

New MACRO and DEF syntax
This commit is contained in:
vulcandth 2022-06-06 16:25:31 -05:00 committed by GitHub
parent d7808d110f
commit 6b5be9129c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
101 changed files with 958 additions and 958 deletions

View file

@ -1,8 +1,8 @@
OPP_ID_OFFSET EQU 200
DEF OPP_ID_OFFSET EQU 200
trainer_const: MACRO
MACRO trainer_const
const \1
OPP_\1 EQU OPP_ID_OFFSET + \1
DEF OPP_\1 EQU OPP_ID_OFFSET + \1
ENDM
; trainer class ids
@ -62,4 +62,4 @@ ENDM
trainer_const CHANNELER ; $2D
trainer_const AGATHA ; $2E
trainer_const LANCE ; $2F
NUM_TRAINERS EQU const_value - 1
DEF NUM_TRAINERS EQU const_value - 1