pokecrystal-board/macros/text.asm

138 lines
2.0 KiB
NASM
Raw Normal View History

text EQUS "db $00," ; Start writing text.
next EQUS "db $4e," ; Move a line down.
line EQUS "db $4f," ; Start writing at the bottom line.
para EQUS "db $51," ; Start a new paragraph.
cont EQUS "db $55," ; Scroll to the next line.
done EQUS "db $57" ; End a text box.
prompt EQUS "db $58" ; Prompt the player to end a text box (initiating some other event).
; Pokedex text commands are only used with pokered.
; They are included for compatibility.
page EQUS "db $50," ; Start a new Pokedex page.
dex EQUS "db $e8, $50" ; End a Pokedex entry.
2015-10-30 07:34:35 -07:00
; TX_RAM EQU $01
; TX_FAR EQU $16
enum_start 1
enum TX_RAM
text_from_ram: MACRO
db TX_RAM
dw \1
ENDM
2015-10-30 07:34:35 -07:00
enum TX_BCD
text_bcd: macro
db TX_BCD
dw \1
db \2
ENDM
2015-10-30 07:34:35 -07:00
enum TX_MOVE
text_move: macro
db TX_MOVE
dw \1
ENDM
2015-10-30 07:34:35 -07:00
enum TX_BOX
text_box: macro
db TX_BOX
dw \1
2015-10-30 07:34:35 -07:00
db \2, \3
ENDM
2015-01-20 00:01:23 -08:00
2015-10-30 07:34:35 -07:00
enum TX_LOW
text_low: macro
db TX_LOW
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum WAIT_BUTTON
2015-01-20 00:01:23 -08:00
text_waitbutton: macro
2015-10-30 07:34:35 -07:00
db WAIT_BUTTON
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_SCROLL
text_scroll: macro
db TX_SCROLL
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum START_ASM
2015-01-20 00:01:23 -08:00
start_asm: macro
2015-10-30 07:34:35 -07:00
db START_ASM
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_NUM
2015-01-20 00:01:23 -08:00
deciram: macro
2015-10-30 07:34:35 -07:00
db TX_NUM
dw \1 ; address
dn \2, \3 ; bytes, digits
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_EXIT
2015-01-20 00:01:23 -08:00
interpret_data: macro
2015-10-30 07:34:35 -07:00
db TX_EXIT
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_SOUND_0B
2015-11-23 18:19:53 -08:00
sound_dex_fanfare_50_79: macro
2015-10-30 07:34:35 -07:00
db TX_SOUND_0B
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_DOTS
2015-01-20 00:01:23 -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
endm
2015-10-30 07:34:35 -07:00
enum TX_LINK_WAIT_BUTTON
link_wait_button: macro
db TX_LINK_WAIT_BUTTON
endm
enum TX_SOUND_0E
2015-11-23 18:19:53 -08:00
sound_dex_fanfare_20_49: macro
2015-10-30 07:34:35 -07:00
db TX_SOUND_0E
endm
enum TX_SOUND_0F
2015-11-23 18:19:53 -08:00
sound_item: macro
2015-10-30 07:34:35 -07:00
db TX_SOUND_0F
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_SOUND_10
2015-11-23 18:19:53 -08:00
sound_caught_mon: macro
2015-10-30 07:34:35 -07:00
db TX_SOUND_10
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_SOUND_11
2015-11-23 18:19:53 -08:00
sound_dex_fanfare_80_109: macro
2015-10-30 07:34:35 -07:00
db TX_SOUND_11
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_SOUND_12
2015-11-23 18:19:53 -08:00
sound_fanfare: macro
2015-10-30 07:34:35 -07:00
db TX_SOUND_12
endm
enum TX_SOUND_13
2015-11-23 18:19:53 -08:00
sound_slot_machine_start: macro
db TX_SOUND_13
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_STRINGBUFFER
text_buffer: macro
db TX_STRINGBUFFER
db \1
endm
enum TX_DAY
2015-01-20 00:01:23 -08:00
current_day: macro
2015-10-30 07:34:35 -07:00
db TX_DAY
2015-01-20 00:01:23 -08:00
endm
2015-10-30 07:34:35 -07:00
enum TX_FAR
text_jump: MACRO
db TX_FAR
dw \1
db BANK(\1)
ENDM