pokecrystal/macros/scripts/text.asm

134 lines
2.1 KiB
NASM
Raw Normal View History

2017-12-15 05:38:52 +00: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).
; TextCommands indexes (see home/text.asm)
enum_start $01
2017-12-15 05:38:52 +00:00
enum TX_RAM ; $01
2015-10-30 14:34:35 +00:00
text_from_ram: MACRO
db TX_RAM
dw \1
ENDM
2017-12-15 05:38:52 +00:00
enum TX_BCD ; $02
2015-10-30 14:34:35 +00:00
text_bcd: macro
db TX_BCD
dw \1
db \2
ENDM
2017-12-15 05:38:52 +00:00
enum TX_MOVE ; $03
2015-10-30 14:34:35 +00:00
text_move: macro
db TX_MOVE
dw \1
ENDM
2017-12-15 05:38:52 +00:00
enum TX_BOX ; $04
2015-10-30 14:34:35 +00:00
text_box: macro
db TX_BOX
dw \1
2015-10-30 14:34:35 +00:00
db \2, \3
ENDM
2015-01-20 08:01:23 +00:00
2017-12-15 05:38:52 +00:00
enum TX_LOW ; $05
2015-10-30 14:34:35 +00:00
text_low: macro
db TX_LOW
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum WAIT_BUTTON ; $06
2015-01-20 08:01:23 +00:00
text_waitbutton: macro
2015-10-30 14:34:35 +00:00
db WAIT_BUTTON
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_SCROLL ; $07
2015-10-30 14:34:35 +00:00
text_scroll: macro
db TX_SCROLL
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum START_ASM ; $08
2015-01-20 08:01:23 +00:00
start_asm: macro
2015-10-30 14:34:35 +00:00
db START_ASM
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_NUM ; $09
2015-01-20 08:01:23 +00:00
deciram: macro
2015-10-30 14:34:35 +00:00
db TX_NUM
dw \1 ; address
dn \2, \3 ; bytes, digits
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_EXIT ; $0a
2015-01-20 08:01:23 +00:00
interpret_data: macro
2015-10-30 14:34:35 +00:00
db TX_EXIT
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_0B ; $0b
2015-11-24 02:19:53 +00:00
sound_dex_fanfare_50_79: macro
2015-10-30 14:34:35 +00:00
db TX_SOUND_0B
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_DOTS ; $0c
2015-01-20 08:01:23 +00:00
limited_interpret_data: macro
2015-10-30 14:34:35 +00:00
db TX_DOTS
2015-01-20 08:01:23 +00:00
db \1
endm
2017-12-15 05:38:52 +00:00
enum TX_LINK_WAIT_BUTTON ; $0d
2015-10-30 14:34:35 +00:00
link_wait_button: macro
db TX_LINK_WAIT_BUTTON
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_0E ; $0e
2015-11-24 02:19:53 +00:00
sound_dex_fanfare_20_49: macro
2015-10-30 14:34:35 +00:00
db TX_SOUND_0E
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_0F ; $0f
2015-11-24 02:19:53 +00:00
sound_item: macro
2015-10-30 14:34:35 +00:00
db TX_SOUND_0F
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_10 ; $10
2015-11-24 02:19:53 +00:00
sound_caught_mon: macro
2015-10-30 14:34:35 +00:00
db TX_SOUND_10
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_11 ; $11
2015-11-24 02:19:53 +00:00
sound_dex_fanfare_80_109: macro
2015-10-30 14:34:35 +00:00
db TX_SOUND_11
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_12 ; $12
2015-11-24 02:19:53 +00:00
sound_fanfare: macro
2015-10-30 14:34:35 +00:00
db TX_SOUND_12
endm
2017-12-15 05:38:52 +00:00
enum TX_SOUND_13 ; $13
2015-11-24 02:19:53 +00:00
sound_slot_machine_start: macro
db TX_SOUND_13
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_STRINGBUFFER ; $14
2015-10-30 14:34:35 +00:00
text_buffer: macro
db TX_STRINGBUFFER
db \1
endm
2017-12-15 05:38:52 +00:00
enum TX_DAY ; $15
2015-01-20 08:01:23 +00:00
current_day: macro
2015-10-30 14:34:35 +00:00
db TX_DAY
2015-01-20 08:01:23 +00:00
endm
2017-12-15 05:38:52 +00:00
enum TX_FAR ; $16
2015-10-30 14:34:35 +00:00
text_jump: MACRO
db TX_FAR
dw \1
db BANK(\1)
ENDM