RGBDS syntax updates (#905)

New MACRO and DEF syntax
This commit is contained in:
vulcandth
2022-06-06 16:25:42 -05:00
committed by GitHub
parent a4d346cc8c
commit 3648afda16
179 changed files with 2546 additions and 2545 deletions

View File

@@ -1,6 +1,6 @@
time_group EQUS "0," ; use the nth TimeFishGroups entry
DEF time_group EQUS "0," ; use the nth TimeFishGroups entry
fishgroup: MACRO
MACRO fishgroup
; chance, old rod, good rod, super rod
db \1
dw \2, \3, \4

View File

@@ -1,4 +1,4 @@
mon_prob: MACRO
MACRO mon_prob
; percent, index
db \1, \2 * 2
ENDM

View File

@@ -1,15 +1,15 @@
; Maps that roaming monsters can be on, and possible maps they can jump to.
; Notably missing are Route 40 and Route 41, which are water routes.
roam_map: MACRO
MACRO roam_map
map_id \1
db _NARG - 1
rept _NARG - 1
map_id \2
shift
endr
rept _NARG - 1
map_id \2
shift
endr
db 0
list_index += 1
DEF list_index += 1
ENDM
RoamMaps:

View File

@@ -1,4 +1,4 @@
treemon_map: MACRO
MACRO treemon_map
map_id \1
db \2 ; treemon set
ENDM

View File

@@ -1,4 +1,4 @@
unown_set: MACRO
MACRO unown_set
rept _NARG
db UNOWN_\1
shift