2022-06-06 14:25:42 -07:00
|
|
|
DEF text EQUS "db TX_START," ; Start writing text.
|
|
|
|
DEF next EQUS "db \"<NEXT>\"," ; Move a line down.
|
|
|
|
DEF line EQUS "db \"<LINE>\"," ; Start writing at the bottom line.
|
|
|
|
DEF page EQUS "db \"@\"," ; Start a new Pokédex page.
|
|
|
|
DEF para EQUS "db \"<PARA>\"," ; Start a new paragraph.
|
|
|
|
DEF cont EQUS "db \"<CONT>\"," ; Scroll to the next line.
|
|
|
|
DEF done EQUS "db \"<DONE>\"" ; End a text box.
|
|
|
|
DEF 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)
|
2020-07-08 12:30:23 -07:00
|
|
|
const_def
|
2018-01-18 15:34:20 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_START ; $00
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_start
|
2018-01-18 15:34:20 -08:00
|
|
|
db TX_START
|
|
|
|
ENDM
|
2017-12-12 10:22:19 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_RAM ; $01
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_ram
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_RAM
|
|
|
|
dw \1
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2016-04-10 11:42:14 -07:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_BCD ; $02
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_bcd
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_MOVE ; $03
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_move
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_BOX ; $04
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_box
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_LOW ; $05
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_low
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_PROMPT_BUTTON ; $06
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_promptbutton
|
2019-11-03 09:48:54 -08:00
|
|
|
db TX_PROMPT_BUTTON
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SCROLL ; $07
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_scroll
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_START_ASM ; $08
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_asm
|
2018-07-17 14:11:17 -07:00
|
|
|
db TX_START_ASM
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-08-03 13:56:33 -07:00
|
|
|
const TX_DECIMAL ; $09
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_decimal
|
2020-08-03 13:56:33 -07:00
|
|
|
db TX_DECIMAL
|
2015-10-30 07:34:35 -07:00
|
|
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_PAUSE ; $0a
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_pause
|
2018-11-17 10:33:03 -08:00
|
|
|
db TX_PAUSE
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_DEX_FANFARE_50_79 ; $0b
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_dex_fanfare_50_79
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_DEX_FANFARE_50_79
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_DOTS ; $0c
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_dots
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_WAIT_BUTTON ; $0d
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_waitbutton
|
2020-07-06 09:55:31 -07:00
|
|
|
db TX_WAIT_BUTTON
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_DEX_FANFARE_20_49 ; $0e
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_dex_fanfare_20_49
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_DEX_FANFARE_20_49
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_ITEM ; $0f
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_item
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_ITEM
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_CAUGHT_MON ; $10
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_caught_mon
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_CAUGHT_MON
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_DEX_FANFARE_80_109 ; $11
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_dex_fanfare_80_109
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_DEX_FANFARE_80_109
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_FANFARE ; $12
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_fanfare
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_FANFARE
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-10-30 07:34:35 -07:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_SOUND_SLOT_MACHINE_START ; $13
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO sound_slot_machine_start
|
2018-01-18 19:06:51 -08:00
|
|
|
db TX_SOUND_SLOT_MACHINE_START
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2015-01-20 00:01:23 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_STRINGBUFFER ; $14
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_buffer
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_DAY ; $15
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_today
|
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
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_FAR ; $16
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_far
|
2015-10-30 07:34:35 -07:00
|
|
|
db TX_FAR
|
|
|
|
dw \1
|
|
|
|
db BANK(\1)
|
2017-12-28 13:31:16 -08:00
|
|
|
ENDM
|
2018-11-17 10:33:03 -08:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF NUM_TEXT_CMDS EQU const_value
|
2021-03-11 13:28:52 -08:00
|
|
|
|
2020-07-08 13:20:15 -07:00
|
|
|
const_next $50
|
2018-11-17 10:33:03 -08:00
|
|
|
|
2020-07-08 12:30:23 -07:00
|
|
|
const TX_END ; $50
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO text_end
|
2018-11-17 10:33:03 -08:00
|
|
|
db TX_END
|
|
|
|
ENDM
|