summaryrefslogtreecommitdiff
path: root/macros/map.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-01-20 00:01:23 -0800
committeryenatch <yenatch@gmail.com>2015-01-20 00:01:23 -0800
commit8583cc4724144e255d61a2c7ed7dd70036bcdb6e (patch)
tree0d6c0dd45f981d35ceb1a0b2c8ec9562da0c0f3f /macros/map.asm
parentd8cf44a87e4da0e53ab44c487b865817b496a048 (diff)
Stop using the preprocessor.
Diffstat (limited to 'macros/map.asm')
-rw-r--r--macros/map.asm40
1 files changed, 40 insertions, 0 deletions
diff --git a/macros/map.asm b/macros/map.asm
new file mode 100644
index 000000000..297646a79
--- /dev/null
+++ b/macros/map.asm
@@ -0,0 +1,40 @@
+person_event: macro
+ db \1 ; sprite
+ db \2 ; y
+ db \3 ; x
+ db \4 ; facing
+ db \5 ; movement
+ db \6 ; clock_hour
+ db \7 ; clock_daytime
+ db \8 ; color_function
+ db \9 ; sight_range
+ shift
+ dw \9 ; pointer
+ shift
+ dw \9 ; event flag
+ endm
+
+signpost: macro
+ db \1 ; y
+ db \2 ; x
+ db \3 ; function
+ dw \4 ; pointer
+ endm
+
+xy_trigger: macro
+ db \1 ; number
+ db \2 ; y
+ db \3 ; x
+ db \4 ; unknown1
+ dw \5 ; script
+ db \6 ; unknown2
+ db \7 ; unknown3
+ endm
+
+warp_def: macro
+ db \1 ; y
+ db \2 ; x
+ db \3 ; warp_to
+ db \4 ; map group
+ db \5 ; map number
+ endm