blob: 97f919c7ca9e18bd49feaf9f9ca745f68a4458e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
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.
TX_RAM EQU $01
TX_FAR EQU $16
text_jump: MACRO
db TX_FAR
dw \1
db BANK(\1)
ENDM
text_from_ram: MACRO
db TX_RAM
dw \1
ENDM
text_dunno1: macro
db 5
endm
text_waitbutton: macro
db 6
endm
text_dunno2: macro
db 7
endm
start_asm: macro
db 8
endm
deciram: macro
db 9
dw \1
db \2
endm
interpret_data: macro
db 10
endm
sound0: macro
db 11
endm
limited_interpret_data: macro
db 12
db \1
endm
sound0x0F: macro
db $f
endm
sound0x02: macro
db $10
endm
sound0x0A: macro
db $11
endm
sound0x2C: macro
db $13
endm
current_day: macro
db $15
endm
|