summaryrefslogtreecommitdiff
path: root/macros.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.asm
parentd8cf44a87e4da0e53ab44c487b865817b496a048 (diff)
Stop using the preprocessor.
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm21
1 files changed, 21 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 50c0e2c25..7d934866a 100644
--- a/macros.asm
+++ b/macros.asm
@@ -1,3 +1,12 @@
+INCLUDE "macros/event.asm"
+INCLUDE "macros/sound.asm"
+INCLUDE "macros/text.asm"
+INCLUDE "macros/charmap.asm"
+INCLUDE "macros/move_effect.asm"
+INCLUDE "macros/move_anim.asm"
+INCLUDE "macros/movement.asm"
+INCLUDE "macros/map.asm"
+
text EQUS "db $00," ; Start writing text.
next EQUS "db $4e," ; Move a line down.
@@ -108,6 +117,18 @@ note: MACRO
db (\1) << 4 + ((\2) - 1)
ENDM
+sound: macro
+ db \1 ; duration
+ db \2 ; intensity
+ dw \3 ; frequency
+ endm
+
+noise: macro
+ db \1 ; duration
+ db \2 ; intensity
+ db \3 ; frequency
+ endm
+
; pitch
__ EQU 0
C_ EQU 1