aboutsummaryrefslogtreecommitdiffstats
path: root/macros/scripts/text.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros/scripts/text.asm')
-rw-r--r--macros/scripts/text.asm88
1 files changed, 44 insertions, 44 deletions
diff --git a/macros/scripts/text.asm b/macros/scripts/text.asm
index 38e56b77..aad42452 100644
--- a/macros/scripts/text.asm
+++ b/macros/scripts/text.asm
@@ -1,44 +1,44 @@
-text EQUS "db TX_START," ; Start writing text.
-next EQUS "db \"<NEXT>\"," ; Move a line down.
-line EQUS "db \"<LINE>\"," ; Start writing at the bottom line.
-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).
+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 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).
-page EQUS "db \"<PAGE>\"," ; Start a new Pokédex page.
-dex EQUS "db \"<DEXEND>\", \"@\"" ; End a Pokédex entry.
+DEF page EQUS "db \"<PAGE>\"," ; Start a new Pokédex page.
+DEF dex EQUS "db \"<DEXEND>\", \"@\"" ; End a Pokédex entry.
; TextCommandJumpTable indexes (see home/text.asm)
const_def
const TX_START ; $00
-text_start: MACRO
+MACRO text_start
db TX_START
ENDM
const TX_RAM ; $01
-text_ram: MACRO
+MACRO text_ram
db TX_RAM
dw \1 ; address to read from
ENDM
const TX_BCD ; $02
-text_bcd: MACRO
+MACRO text_bcd
db TX_BCD
dw \1 ; address to read from
db \2 ; number of bytes + print flags
ENDM
const TX_MOVE ; $03
-text_move: MACRO
+MACRO text_move
db TX_MOVE
dw \1 ; address of the new location
ENDM
const TX_BOX ; $04
-text_box: MACRO
+MACRO text_box
; draw box
db TX_BOX
dw \1 ; address of upper left corner
@@ -46,27 +46,27 @@ text_box: MACRO
ENDM
const TX_LOW ; $05
-text_low: MACRO
+MACRO text_low
db TX_LOW
ENDM
const TX_PROMPT_BUTTON ; $06
-text_promptbutton: MACRO
+MACRO text_promptbutton
db TX_PROMPT_BUTTON
ENDM
const TX_SCROLL ; $07
-text_scroll: MACRO
+MACRO text_scroll
db TX_SCROLL
ENDM
const TX_START_ASM ; $08
-text_asm: MACRO
+MACRO text_asm
db TX_START_ASM
ENDM
const TX_NUM ; $09
-text_decimal: MACRO
+MACRO text_decimal
; print a big-endian decimal number.
db TX_NUM
dw \1 ; address to read from
@@ -74,76 +74,76 @@ text_decimal: MACRO
ENDM
const TX_PAUSE ; $0a
-text_pause: MACRO
+MACRO text_pause
db TX_PAUSE
ENDM
const TX_SOUND_GET_ITEM_1 ; $0b
-sound_get_item_1: MACRO
+MACRO sound_get_item_1
db TX_SOUND_GET_ITEM_1
ENDM
-TX_SOUND_LEVEL_UP EQU TX_SOUND_GET_ITEM_1
-sound_level_up EQUS "sound_get_item_1"
+DEF TX_SOUND_LEVEL_UP EQU TX_SOUND_GET_ITEM_1
+DEF sound_level_up EQUS "sound_get_item_1"
const TX_DOTS ; $0c
-text_dots: MACRO
+MACRO text_dots
db TX_DOTS
db \1 ; number of ellipses to draw
ENDM
const TX_WAIT_BUTTON ; $0d
-text_waitbutton: MACRO
+MACRO text_waitbutton
db TX_WAIT_BUTTON
ENDM
const TX_SOUND_POKEDEX_RATING ; $0e
-sound_pokedex_rating: MACRO
+MACRO sound_pokedex_rating
db TX_SOUND_POKEDEX_RATING
ENDM
const TX_SOUND_GET_ITEM_1_DUPLICATE ; $0f
-sound_get_item_1_duplicate: MACRO
+MACRO sound_get_item_1_duplicate
db TX_SOUND_GET_ITEM_1_DUPLICATE
ENDM
const TX_SOUND_GET_ITEM_2 ; $10
-sound_get_item_2: MACRO
+MACRO sound_get_item_2
db TX_SOUND_GET_ITEM_2
ENDM
const TX_SOUND_GET_KEY_ITEM ; $11
-sound_get_key_item: MACRO
+MACRO sound_get_key_item
db TX_SOUND_GET_KEY_ITEM
ENDM
const TX_SOUND_CAUGHT_MON ; $12
-sound_caught_mon: MACRO
+MACRO sound_caught_mon
db TX_SOUND_CAUGHT_MON
ENDM
const TX_SOUND_DEX_PAGE_ADDED ; $13
-sound_dex_page_added: MACRO
+MACRO sound_dex_page_added
db TX_SOUND_DEX_PAGE_ADDED
ENDM
const TX_SOUND_CRY_PIKACHU ; $14
-sound_cry_pikachu: MACRO
+MACRO sound_cry_pikachu
db TX_SOUND_CRY_PIKACHU
ENDM
const TX_SOUND_CRY_PIDGEOT ; $15
-sound_cry_pidgeot: MACRO
+MACRO sound_cry_pidgeot
db TX_SOUND_CRY_PIDGEOT
ENDM
const TX_SOUND_CRY_DEWGONG ; $16
-sound_cry_dewgong: MACRO
+MACRO sound_cry_dewgong
db TX_SOUND_CRY_DEWGONG
ENDM
const TX_FAR ; $17
-text_far: MACRO
+MACRO text_far
db TX_FAR
dab \1 ; address of text commands
ENDM
@@ -152,7 +152,7 @@ ENDM
const_next $50
const TX_END ; $50
-text_end: MACRO
+MACRO text_end
db TX_END
ENDM
@@ -161,12 +161,12 @@ ENDM
const_def -1, -1
const TX_SCRIPT_POKECENTER_NURSE ; $ff
-script_pokecenter_nurse: MACRO
+MACRO script_pokecenter_nurse
db TX_SCRIPT_POKECENTER_NURSE
ENDM
const TX_SCRIPT_MART ; $fe
-script_mart: MACRO
+MACRO script_mart
db TX_SCRIPT_MART
db _NARG ; number of items
IF _NARG
@@ -176,12 +176,12 @@ script_mart: MACRO
ENDM
const TX_SCRIPT_BILLS_PC ; $fd
-script_bills_pc: MACRO
+MACRO script_bills_pc
db TX_SCRIPT_BILLS_PC
ENDM
const TX_SCRIPT_PLAYERS_PC ; $fc
-script_players_pc: MACRO
+MACRO script_players_pc
db TX_SCRIPT_PLAYERS_PC
ENDM
@@ -190,23 +190,23 @@ ENDM
const_skip ; $fa
const TX_SCRIPT_POKECENTER_PC ; $f9
-script_pokecenter_pc: MACRO
+MACRO script_pokecenter_pc
db TX_SCRIPT_POKECENTER_PC
ENDM
const_skip ; $f8
const TX_SCRIPT_PRIZE_VENDOR ; $f7
-script_prize_vendor: MACRO
+MACRO script_prize_vendor
db TX_SCRIPT_PRIZE_VENDOR
ENDM
const TX_SCRIPT_CABLE_CLUB_RECEPTIONIST ; $f6
-script_cable_club_receptionist: MACRO
+MACRO script_cable_club_receptionist
db TX_SCRIPT_CABLE_CLUB_RECEPTIONIST
ENDM
const TX_SCRIPT_VENDING_MACHINE ; $f5
-script_vending_machine: MACRO
+MACRO script_vending_machine
db TX_SCRIPT_VENDING_MACHINE
ENDM