summaryrefslogtreecommitdiff
path: root/asm/macros
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-02-18 16:42:47 -0500
committerGitHub <noreply@github.com>2020-02-18 16:42:47 -0500
commitf9c1b6101495f09cf797cf0cb466ec4cc5838e72 (patch)
treea9928af64ee6a0ee6c9409ca40d43ddefe14c27d /asm/macros
parente4d15a2338500e91e1f2a9723c48ecf25ae8111e (diff)
parent753e894b6a9aa9f51789d4e1945d310749fd6c54 (diff)
Merge pull request #258 from GriffinRichards/doc-headers
Document some header properties
Diffstat (limited to 'asm/macros')
-rw-r--r--asm/macros/map.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc
index d903899fe..0f35bf959 100644
--- a/asm/macros/map.inc
+++ b/asm/macros/map.inc
@@ -88,3 +88,8 @@
map \map
.space 2
.endm
+
+ .macro map_header_flags allow_cycling:req, allow_escaping:req, allow_running:req, show_map_name:req
+ .byte \allow_cycling
+ .byte ((\show_map_name & 1) << 2) | ((\allow_running & 1) << 1) | ((\allow_escaping & 1) << 0)
+ .endm