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,4 +1,4 @@
bench_guy_text: MACRO
MACRO bench_guy_text
db \1, \2
db_tx_pre \3
ENDM

View file

@ -1,4 +1,4 @@
hidden_coin: MACRO
MACRO hidden_coin
db \1, \3, \2
ENDM

View file

@ -1,4 +1,4 @@
hidden_item: MACRO
MACRO hidden_item
db \1, \3, \2
ENDM

View file

@ -174,14 +174,14 @@ HiddenObjectPointers:
dw CeruleanCityHiddenObjects
dw Route4HiddenObjects
hidden_object: MACRO
MACRO hidden_object
db \2 ; y coord
db \1 ; x coord
db \3 ; item id
dba \4 ; object routine
ENDM
hidden_text_predef: MACRO
MACRO hidden_text_predef
db \2 ; y coord
db \1 ; x coord
db_tx_pre \3 ; text id
@ -191,7 +191,7 @@ ENDM
; Some hidden objects use SPRITE_FACING_* values,
; but these do not actually prevent the player
; from interacting with them in any direction.
ANY_FACING EQU $d0
DEF ANY_FACING EQU $d0
TradeCenterHiddenObjects:
hidden_object 5, 4, ANY_FACING, CableClubRightGameboy