diff options
author | yenatch <yenatch@gmail.com> | 2015-01-20 14:10:55 -0800 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-01-20 14:10:55 -0800 |
commit | 9303752e3fac18a5245870a992a04d11772bed52 (patch) | |
tree | a5c9779df1f77b8a3f0d2402357cb8645fd1bd81 /macros/text.asm | |
parent | 0fa7b553bddeb4ba70b216c93eb09226b2674beb (diff) |
Start moving relevant macros into macros/text.asm.
Diffstat (limited to 'macros/text.asm')
-rw-r--r-- | macros/text.asm | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/macros/text.asm b/macros/text.asm index ae49d8fbb..8174c5200 100644 --- a/macros/text.asm +++ b/macros/text.asm @@ -1,7 +1,30 @@ -text_from_ram: macro +text EQUS "db $00," ; Start writing text. +next EQUS "db $4e," ; Move a line down. +line EQUS "db $4f," ; Start writing at the bottom line. +para EQUS "db $51," ; Start a new paragraph. +cont EQUS "db $55," ; Scroll to the next line. +done EQUS "db $57" ; End a text box. +prompt EQUS "db $58" ; Prompt the player to end a text box (initiating some other event). + +; Pokedex text commands are only used with pokered. +; They are included for compatibility. +page EQUS "db $50," ; Start a new Pokedex page. +dex EQUS "db $e8, $50" ; End a Pokedex entry. + + +TX_RAM: MACRO db 1 dw \1 - endm + ENDM + +TX_FAR: MACRO + db $16 + dw \1 + db BANK(\1) + ENDM + + +text_from_ram EQUS "TX_RAM" text_dunno1: macro db 5 @@ -58,8 +81,4 @@ current_day: macro db $15 endm -text_jump: macro - db $16 - dw \1 - db BANK(\1) - endm +text_jump EQUS "TX_FAR" |