2017-12-14 21:38:52 -08:00
|
|
|
text EQUS "db \"<START>\"," ; Start writing text.
|
|
|
|
next EQUS "db \"<NEXT>\"," ; Move a line down.
|
|
|
|
line EQUS "db \"<LINE>\"," ; Start writing at the bottom line.
|
|
|
|
page EQUS "db \"@\"," ; Start a new Pokédex page.
|
|
|
|
para EQUS "db \"<PARA>\"," ; Start a new paragraph.
|
|
|
|
cont EQUS "db \"<CONT>\"," ; Scroll to the next line.
|
|
|
|
done EQUS "db \"<DONE>\"" ; End a text box.
|
|
|
|
prompt EQUS "db \"<PROMPT>\"" ; Prompt the player to end a text box (initiating some other event).
|
2015-01-20 14:10:55 -08:00
|
|
|
|
2017-12-12 10:22:19 -08:00
|
|
|
; TextCommands indexes (see home/text.asm)
|
|
|
|
enum_start $01
|
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_RAM ; $01
|
2015-10-30 07:34:35 -07:00
|
|
|
text_from_ram: MACRO
|
|
|
|
db TX_RAM
|
|
|
|
dw \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2016-04-10 11:42:14 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_BCD ; $02
|
2017-12-28 04:23:44 -08:00
|
|
|
text_bcd: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_BCD
|
|
|
|
dw \1
|
|
|
|
db \2
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 14:10:55 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_MOVE ; $03
|
2017-12-28 04:23:44 -08:00
|
|
|
text_move: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_MOVE
|
2015-01-20 14:10:55 -08:00
|
|
|
dw \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 14:10:55 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_BOX ; $04
|
2017-12-28 04:23:44 -08:00
|
|
|
text_box: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_BOX
|
2015-07-22 12:57:02 -07:00
|
|
|
dw \1
|
2015-10-30 07:34:35 -07:00
|
|
|
db \2, \3
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_LOW ; $05
|
2017-12-28 04:23:44 -08:00
|
|
|
text_low: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_LOW
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum WAIT_BUTTON ; $06
|
2017-12-28 04:23:44 -08:00
|
|
|
text_waitbutton: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db WAIT_BUTTON
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SCROLL ; $07
|
2017-12-28 04:23:44 -08:00
|
|
|
text_scroll: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SCROLL
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum START_ASM ; $08
|
2017-12-28 04:23:44 -08:00
|
|
|
start_asm: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db START_ASM
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_NUM ; $09
|
2017-12-28 04:23:44 -08:00
|
|
|
deciram: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_NUM
|
|
|
|
dw \1 ; address
|
|
|
|
dn \2, \3 ; bytes, digits
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_EXIT ; $0a
|
2017-12-28 04:23:44 -08:00
|
|
|
interpret_data: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_EXIT
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_0B ; $0b
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_dex_fanfare_50_79: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SOUND_0B
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_DOTS ; $0c
|
2017-12-28 04:23:44 -08:00
|
|
|
limited_interpret_data: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_DOTS
|
2015-01-20 00:01:23 -08:00
|
|
|
db \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_LINK_WAIT_BUTTON ; $0d
|
2017-12-28 04:23:44 -08:00
|
|
|
link_wait_button: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_LINK_WAIT_BUTTON
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_0E ; $0e
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_dex_fanfare_20_49: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SOUND_0E
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_0F ; $0f
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_item: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SOUND_0F
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_10 ; $10
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_caught_mon: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SOUND_10
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_11 ; $11
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_dex_fanfare_80_109: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SOUND_11
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_12 ; $12
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_fanfare: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_SOUND_12
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_SOUND_13 ; $13
|
2017-12-28 04:23:44 -08:00
|
|
|
sound_slot_machine_start: MACRO
|
2015-11-23 18:19:53 -08:00
|
|
|
db TX_SOUND_13
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_STRINGBUFFER ; $14
|
2017-12-28 04:23:44 -08:00
|
|
|
text_buffer: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_STRINGBUFFER
|
|
|
|
db \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_DAY ; $15
|
2017-12-28 04:23:44 -08:00
|
|
|
current_day: MACRO
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_DAY
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2017-12-14 21:38:52 -08:00
|
|
|
enum TX_FAR ; $16
|
2015-10-30 07:34:35 -07:00
|
|
|
text_jump: MACRO
|
|
|
|
db TX_FAR
|
|
|
|
dw \1
|
|
|
|
db BANK(\1)
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|