2018-01-18 23:34:20 +00:00
|
|
|
text EQUS "db TX_START," ; Start writing text.
|
2017-12-15 05:38:52 +00:00
|
|
|
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 22:10:55 +00:00
|
|
|
|
2017-12-12 18:22:19 +00:00
|
|
|
; TextCommands indexes (see home/text.asm)
|
2020-07-08 19:30:23 +00:00
|
|
|
const_def
|
2018-01-18 23:34:20 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_START ; $00
|
2018-01-18 23:34:20 +00:00
|
|
|
text_start: MACRO
|
|
|
|
db TX_START
|
|
|
|
ENDM
|
2017-12-12 18:22:19 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_RAM ; $01
|
2018-11-17 18:33:03 +00:00
|
|
|
text_ram: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_RAM
|
|
|
|
dw \1
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2016-04-10 18:42:14 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_BCD ; $02
|
2017-12-28 12:23:44 +00:00
|
|
|
text_bcd: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_BCD
|
|
|
|
dw \1
|
|
|
|
db \2
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 22:10:55 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_MOVE ; $03
|
2017-12-28 12:23:44 +00:00
|
|
|
text_move: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_MOVE
|
2015-01-20 22:10:55 +00:00
|
|
|
dw \1
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 22:10:55 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_BOX ; $04
|
2017-12-28 12:23:44 +00:00
|
|
|
text_box: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_BOX
|
2015-07-22 19:57:02 +00:00
|
|
|
dw \1
|
2015-10-30 14:34:35 +00:00
|
|
|
db \2, \3
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_LOW ; $05
|
2017-12-28 12:23:44 +00:00
|
|
|
text_low: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_LOW
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_PROMPT_BUTTON ; $06
|
2019-11-03 17:48:54 +00:00
|
|
|
text_promptbutton: MACRO
|
|
|
|
db TX_PROMPT_BUTTON
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SCROLL ; $07
|
2017-12-28 12:23:44 +00:00
|
|
|
text_scroll: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_SCROLL
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_START_ASM ; $08
|
2018-11-17 18:33:03 +00:00
|
|
|
text_asm: MACRO
|
2018-07-17 21:11:17 +00:00
|
|
|
db TX_START_ASM
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_NUM ; $09
|
2018-11-17 18:33:03 +00:00
|
|
|
text_decimal: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_NUM
|
|
|
|
dw \1 ; address
|
|
|
|
dn \2, \3 ; bytes, digits
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_PAUSE ; $0a
|
2018-11-17 18:33:03 +00:00
|
|
|
text_pause: MACRO
|
|
|
|
db TX_PAUSE
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_DEX_FANFARE_50_79 ; $0b
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_dex_fanfare_50_79: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_DEX_FANFARE_50_79
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_DOTS ; $0c
|
2018-11-17 18:33:03 +00:00
|
|
|
text_dots: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_DOTS
|
2015-01-20 08:01:23 +00:00
|
|
|
db \1
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_WAIT_BUTTON ; $0d
|
2020-07-06 16:55:31 +00:00
|
|
|
text_waitbutton: MACRO
|
|
|
|
db TX_WAIT_BUTTON
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-10-30 14:34:35 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_DEX_FANFARE_20_49 ; $0e
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_dex_fanfare_20_49: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_DEX_FANFARE_20_49
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-10-30 14:34:35 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_ITEM ; $0f
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_item: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_ITEM
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_CAUGHT_MON ; $10
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_caught_mon: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_CAUGHT_MON
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_DEX_FANFARE_80_109 ; $11
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_dex_fanfare_80_109: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_DEX_FANFARE_80_109
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_FANFARE ; $12
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_fanfare: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_FANFARE
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-10-30 14:34:35 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_SOUND_SLOT_MACHINE_START ; $13
|
2017-12-28 12:23:44 +00:00
|
|
|
sound_slot_machine_start: MACRO
|
2018-01-19 03:06:51 +00:00
|
|
|
db TX_SOUND_SLOT_MACHINE_START
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_STRINGBUFFER ; $14
|
2017-12-28 12:23:44 +00:00
|
|
|
text_buffer: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_STRINGBUFFER
|
|
|
|
db \1
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-10-30 14:34:35 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_DAY ; $15
|
2018-11-17 18:33:03 +00:00
|
|
|
text_today: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_DAY
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2015-01-20 08:01:23 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_FAR ; $16
|
2018-10-28 16:16:55 +00:00
|
|
|
text_far: MACRO
|
2015-10-30 14:34:35 +00:00
|
|
|
db TX_FAR
|
|
|
|
dw \1
|
|
|
|
db BANK(\1)
|
2017-12-28 21:31:16 +00:00
|
|
|
ENDM
|
2018-11-17 18:33:03 +00:00
|
|
|
|
2020-07-08 20:20:15 +00:00
|
|
|
const_next $50
|
2018-11-17 18:33:03 +00:00
|
|
|
|
2020-07-08 19:30:23 +00:00
|
|
|
const TX_END ; $50
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end: MACRO
|
|
|
|
db TX_END
|
|
|
|
ENDM
|