diff options
author | Bryan Bishop <kanzure@gmail.com> | 2015-01-20 12:14:38 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2015-01-20 12:14:38 -0600 |
commit | 567b576f60866f92eda1660ecd19bf3e6d7519c6 (patch) | |
tree | 37f64e9b8e11b410fc6e3723827571e16dd07e0d /macros.asm | |
parent | 4781d9a809565804a4b99024a69a51156fd2749e (diff) | |
parent | 0fa7b553bddeb4ba70b216c93eb09226b2674beb (diff) |
Merge pull request #268 from yenatch/master
remove preprocessor
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm index 89cf62c63..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. @@ -39,6 +48,11 @@ dbbw: MACRO dw \3 ENDM +dbwww: MACRO + db \1 + dw \2, \3, \4 + ENDM + dn: MACRO db (\1) << 4 + (\2) ENDM @@ -103,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 |