pokegold-spaceworld/macros/text.asm
Narishma-gb d94d75f8fc
Some checks failed
CI / build (push) Has been cancelled
Charmap and text strings update (#124)
* Add Katakana `リ`, `ヘ`, `ベ`, `ペ` in charmap and text strings

* Format text strings, using macro where possible

* Remove unused charmap entries, name `Function3036`

* Charmap update and reorder, `TextAsmEnd`
2025-11-25 14:27:50 -05:00

162 lines
2.2 KiB
NASM

MACRO text
db TX_START, \# ; Start writing text
ENDM
MACRO next
db "<NEXT>", \# ; Move a line down
ENDM
MACRO line
db "<LINE>", \# ; Start writing at the bottom line
ENDM
MACRO para
db "<PARA>", \# ; Start a new paragraph
ENDM
MACRO cont
db "<CONT>", \# ; Scroll to the next line
ENDM
MACRO done
db "<DONE>" ; End a text box
ENDM
MACRO prompt
db "<PROMPT>" ; Prompt the player to end a text box (initiating some other event)
ENDM
; TextCommands indexes (see home/text.asm)
const_def
const TX_START ; $00
MACRO text_start
db TX_START
ENDM
const TX_RAM ; $01
MACRO text_from_ram
db TX_RAM
dw \1 ; address
ENDM
const TX_BCD ; $02
MACRO text_bcd
db TX_BCD
dw \1 ; address
db \2 ; flags + digits, see PrintBCDNumber
ENDM
const TX_MOVE ; $03
MACRO text_move
db TX_MOVE
dw \1 ; address
ENDM
const TX_BOX ; $04
MACRO text_box
db TX_BOX
dw \1 ; address
db \2, \3 ; width, height
ENDM
const TX_LOW ; $05
MACRO text_low
db TX_LOW
ENDM
const WAIT_BUTTON ; $06
MACRO text_waitbutton
db WAIT_BUTTON
ENDM
const TX_SCROLL ; $07
MACRO text_scroll
db TX_SCROLL
ENDM
const START_ASM ; $08
MACRO start_asm
db START_ASM
ENDM
const TX_NUM ; $09
MACRO deciram
db TX_NUM
dw \1 ; address
dn \2, \3 ; bytes, flags + digits
ENDM
const TX_EXIT ; $0a
MACRO text_exit
db TX_EXIT
ENDM
const TX_SOUND_0B ; $0b
MACRO sound_dex_fanfare_50_79
db TX_SOUND_0B
ENDM
const TX_DOTS ; $0c
MACRO text_dots
db TX_DOTS
db \1
ENDM
const TX_LINK_WAIT_BUTTON ; $0d
MACRO link_wait_button
db TX_LINK_WAIT_BUTTON
ENDM
const TX_SOUND_0E ; $0e
MACRO sound_dex_fanfare_20_49
db TX_SOUND_0E
ENDM
const TX_SOUND_0F ; $0f
MACRO sound_item
db TX_SOUND_0F
ENDM
const TX_SOUND_10 ; $10
MACRO sound_caught_mon
db TX_SOUND_10
ENDM
const TX_SOUND_11 ; $11
MACRO sound_dex_fanfare_80_109
db TX_SOUND_11
ENDM
const TX_SOUND_12 ; $12
MACRO sound_fanfare
db TX_SOUND_12
ENDM
const TX_SOUND_13 ; $13
MACRO sound_slot_machine_start
db TX_SOUND_13
ENDM
const TX_CRY_14 ; $14
MACRO cry_nidorina
db TX_CRY_14
ENDM
const TX_CRY_15 ; $15
MACRO cry_pidgeot
db TX_CRY_15
ENDM
const TX_CRY_16 ; $16
MACRO cry_dewgong
db TX_CRY_16
ENDM
const_next $50
const TX_END ; $50
MACRO text_end
db TX_END
ENDM