ref: fecc5c339adf8d4c2939364e49e4ba5c46f207ba
parent: 28aec67f6e99db64582f66b26a5c898fe9943e00
author: Remy Oukaour <[email protected]>
date: Thu Dec 14 19:38:52 EST 2017
More comments for macros
--- a/home/text.asm
+++ b/home/text.asm
@@ -227,42 +227,42 @@
._\@:
endm
- dict "<DAY>", Char15
- dict "<LINE>", LineChar
- dict "<NEXT>", NextLineChar
- dict TX_FAR, TextFar
- dict $00, NullChar
- dict $4c, Char4C
- dict $4b, Char4B
- dict "<PARA>", Paragraph
- dict "<MOM>", PrintMomsName
- dict "<PLAYER>", PrintPlayerName
- dict "<RIVAL>", PrintRivalName
- dict $35, Char35
- dict $36, Char36
- dict $37, Char37
- dict "<RED>", PrintRedsName
- dict "<GREEN>", PrintGreensName
- dict "#", PlacePOKe
- dict "<PC>", PCChar
- dict "<ROCKET>", RocketChar
- dict "<TM>", TMChar
- dict "<TRNER>", TrainerChar
- dict $23, PlaceKougeki
- dict "<LNBRK>", Char22
- dict "<CONT>", ContText
- dict "<......>", SixDotsChar
- dict "<DONE>", DoneText
- dict "<PROMPT>", PromptText
- dict "<PKMN>", PlacePKMN
- dict "<POKE>", PlacePOKE
- dict $25, NextChar
- dict2 $1f, " "
- dict "<DEXEND>", PlaceDexEnd
- dict "<TARGET>", PlaceMoveTargetsName
- dict "<USER>", PlaceMoveUsersName
- dict "<ENEMY>", PlaceEnemysName
- dict "<PLAY_G>", PlaceGenderedPlayerName
+ dict "<DAY>", Char15
+ dict "<LINE>", LineChar
+ dict "<NEXT>", NextLineChar
+ dict TX_FAR, TextFar
+ dict $00, NullChar
+ dict $4c, Char4C
+ dict $4b, Char4B
+ dict "<PARA>", Paragraph
+ dict "<MOM>", PrintMomsName
+ dict "<PLAYER>", PrintPlayerName
+ dict "<RIVAL>", PrintRivalName
+ dict $35, Char35
+ dict $36, Char36
+ dict $37, Char37
+ dict "<RED>", PrintRedsName
+ dict "<GREEN>", PrintGreensName
+ dict "#", PlacePOKe
+ dict "<PC>", PCChar
+ dict "<ROCKET>", RocketChar
+ dict "<TM>", TMChar
+ dict "<TRNER>", TrainerChar
+ dict "<KOUGEKI>", PlaceKougeki
+ dict "<LNBRK>", Char22
+ dict "<CONT>", ContText
+ dict "<......>", SixDotsChar
+ dict "<DONE>", DoneText
+ dict "<PROMPT>", PromptText
+ dict "<PKMN>", PlacePKMN
+ dict "<POKE>", PlacePOKE
+ dict "%", NextChar
+ dict2 "¯", " "
+ dict "<DEXEND>", PlaceDexEnd
+ dict "<TARGET>", PlaceMoveTargetsName
+ dict "<USER>", PlaceMoveUsersName
+ dict "<ENEMY>", PlaceEnemysName
+ dict "<PLAY_G>", PlaceGenderedPlayerName
cp "゚"
jr z, .place ; should be .diacritic
--- a/macros/charmap.asm
+++ b/macros/charmap.asm
@@ -1,208 +1,209 @@
; Control characters
- charmap "<START>", $00
- charmap "<PLAY_G>", $14 ; gendered PlayerName; same as "<PLAYER>" in English
- charmap "<DAY>", $15
- charmap "¯", $1f ; soft linebreak
- charmap "<LNBRK>", $22
- charmap "<POKE>", $24 ; "<PO><KE>"
- charmap "%", $25
- charmap "<RED>", $38 ; RedsName
- charmap "<GREEN>", $39 ; GreensName
- charmap "<ENEMY>", $3f
- charmap "<MOM>", $49 ; MomsName
- charmap "<PKMN>", $4a ; "<PK><MN>"
- charmap "<NEXT>", $4e
- charmap "<LINE>", $4f
+ charmap "<START>", $00
+ charmap "<PLAY_G>", $14 ; gendered PlayerName; same as "<PLAYER>" in English
+ charmap "<DAY>", $15
+ charmap "¯", $1f ; soft linebreak
+ charmap "<LNBRK>", $22
+ charmap "<KOUGEKI>", $23 ; "こうげき"
+ charmap "<POKE>", $24 ; "<PO><KE>"
+ charmap "%", $25
+ charmap "<RED>", $38 ; RedsName
+ charmap "<GREEN>", $39 ; GreensName
+ charmap "<ENEMY>", $3f
+ charmap "<MOM>", $49 ; MomsName
+ charmap "<PKMN>", $4a ; "<PK><MN>"
+ charmap "<NEXT>", $4e
+ charmap "<LINE>", $4f
- charmap "@", $50
- charmap "<PARA>", $51
- charmap "<PLAYER>", $52 ; PlayerName
- charmap "<RIVAL>", $53
- charmap "#", $54
- charmap "<CONT>", $55
- charmap "<......>", $56 ; "……"
- charmap "<DONE>", $57
- charmap "<PROMPT>", $58
- charmap "<TARGET>", $59
- charmap "<USER>", $5a
- charmap "<PC>", $5b ; "PC"
- charmap "<TM>", $5c ; "TM"
- charmap "<TRNER>", $5d ; "TRAINER"
- charmap "<ROCKET>", $5e ; "ROCKET"
- charmap "<DEXEND>", $5f
+ charmap "@", $50 ; string terminator
+ charmap "<PARA>", $51
+ charmap "<PLAYER>", $52 ; PlayerName
+ charmap "<RIVAL>", $53
+ charmap "#", $54 ; "POKé"
+ charmap "<CONT>", $55
+ charmap "<......>", $56 ; "……"
+ charmap "<DONE>", $57
+ charmap "<PROMPT>", $58
+ charmap "<TARGET>", $59
+ charmap "<USER>", $5a
+ charmap "<PC>", $5b ; "PC"
+ charmap "<TM>", $5c ; "TM"
+ charmap "<TRNER>", $5d ; "TRAINER"
+ charmap "<ROCKET>", $5e ; "ROCKET"
+ charmap "<DEXEND>", $5f
; Actual characters (from gfx/misc/font_extra.png)
- charmap "<BOLD_A>", $60 ; unused
- charmap "<BOLD_B>", $61 ; unused
- charmap "<BOLD_C>", $62 ; unused
- charmap "<BOLD_D>", $63 ; unused
- charmap "<BOLD_E>", $64 ; unused
- charmap "<BOLD_F>", $65 ; unused
- charmap "<BOLD_G>", $66 ; unused
- charmap "<BOLD_H>", $67 ; unused
- charmap "<BOLD_I>", $68 ; unused
- charmap "<BOLD_V>", $69
- charmap "<BOLD_S>", $6a
- charmap "<BOLD_L>", $6b ; unused
- charmap "<BOLD_M>", $6c ; unused
- charmap "<COLON>", $6d ; colon with tinier dots than ":"
- charmap "ぃ", $6e ; hiragana small i, unused
- charmap "ぅ", $6f ; hiragana small u, unused
- charmap "<PO>", $70
- charmap "<KE>", $71
- charmap "<``>", $72 ; opening quote
- charmap "<''>", $73 ; closing quote
- charmap "·", $74 ; middle dot, unused
- charmap "…", $75 ; ellipsis
- charmap "ぁ", $76 ; hiragana small a, unused
- charmap "ぇ", $77 ; hiragana small e, unused
- charmap "ぉ", $78 ; hiragana small o, unused
+ charmap "<BOLD_A>", $60 ; unused
+ charmap "<BOLD_B>", $61 ; unused
+ charmap "<BOLD_C>", $62 ; unused
+ charmap "<BOLD_D>", $63 ; unused
+ charmap "<BOLD_E>", $64 ; unused
+ charmap "<BOLD_F>", $65 ; unused
+ charmap "<BOLD_G>", $66 ; unused
+ charmap "<BOLD_H>", $67 ; unused
+ charmap "<BOLD_I>", $68 ; unused
+ charmap "<BOLD_V>", $69
+ charmap "<BOLD_S>", $6a
+ charmap "<BOLD_L>", $6b ; unused
+ charmap "<BOLD_M>", $6c ; unused
+ charmap "<COLON>", $6d ; colon with tinier dots than ":"
+ charmap "ぃ", $6e ; hiragana small i, unused
+ charmap "ぅ", $6f ; hiragana small u, unused
+ charmap "<PO>", $70
+ charmap "<KE>", $71
+ charmap "<``>", $72 ; opening quote
+ charmap "<''>", $73 ; closing quote
+ charmap "·", $74 ; middle dot, unused
+ charmap "…", $75 ; ellipsis
+ charmap "ぁ", $76 ; hiragana small a, unused
+ charmap "ぇ", $77 ; hiragana small e, unused
+ charmap "ぉ", $78 ; hiragana small o, unused
- charmap "┌", $79
- charmap "─", $7a
- charmap "┐", $7b
- charmap "│", $7c
- charmap "└", $7d
- charmap "┘", $7e
- charmap " ", $7f
+ charmap "┌", $79
+ charmap "─", $7a
+ charmap "┐", $7b
+ charmap "│", $7c
+ charmap "└", $7d
+ charmap "┘", $7e
+ charmap " ", $7f
; Actual characters (from gfx/misc/font_battle_extra.png)
- charmap "<LV>", $6e
+ charmap "<LV>", $6e
- charmap "<ど>", $70 ; hiragana small do, unused
- charmap "◀", $71
- charmap "『", $72 ; Japanese opening quote, unused
- charmap "<ID>", $73
- charmap "№", $74
+ charmap "<ど>", $70 ; hiragana small do, unused
+ charmap "◀", $71
+ charmap "『", $72 ; Japanese opening quote, unused
+ charmap "<ID>", $73
+ charmap "№", $74
; Actual characters (from other graphics files)
- charmap "|", $31 ; from gfx/stats/stats_tiles
+ charmap "|", $31 ; from gfx/stats/stats_tiles
- charmap "<SHINY>", $3f ; gfx/stats/shiny
+ charmap "<SHINY>", $3f ; gfx/stats/shiny
- charmap "<BLACK>", $60 ; from gfx/mobile/phone_tiles.2bpp
- charmap "▲", $61 ; gfx/font/up_arrow.png
- charmap "<PHONE>", $62 ; gfx/mobile/overworld_phone_icon.2bpp
- charmap "_", $62 ; from gfx/battle/hp_exp_bar_border.1bpp
+ charmap "<BLACK>", $60 ; from gfx/mobile/phone_tiles.2bpp
+ charmap "▲", $61 ; gfx/font/up_arrow.png
+ charmap "<PHONE>", $62 ; gfx/mobile/overworld_phone_icon.2bpp
+ charmap "_", $62 ; from gfx/battle/hp_exp_bar_border.1bpp
- charmap "′", $6e ; gfx/font/feet_inches.png
- charmap "″", $6f ; gfx/font/feet_inches.png
+ charmap "′", $6e ; gfx/font/feet_inches.png
+ charmap "″", $6f ; gfx/font/feet_inches.png
; Actual characters (from gfx/misc/font.png)
- charmap "A", $80
- charmap "B", $81
- charmap "C", $82
- charmap "D", $83
- charmap "E", $84
- charmap "F", $85
- charmap "G", $86
- charmap "H", $87
- charmap "I", $88
- charmap "J", $89
- charmap "K", $8a
- charmap "L", $8b
- charmap "M", $8c
- charmap "N", $8d
- charmap "O", $8e
- charmap "P", $8f
- charmap "Q", $90
- charmap "R", $91
- charmap "S", $92
- charmap "T", $93
- charmap "U", $94
- charmap "V", $95
- charmap "W", $96
- charmap "X", $97
- charmap "Y", $98
- charmap "Z", $99
+ charmap "A", $80
+ charmap "B", $81
+ charmap "C", $82
+ charmap "D", $83
+ charmap "E", $84
+ charmap "F", $85
+ charmap "G", $86
+ charmap "H", $87
+ charmap "I", $88
+ charmap "J", $89
+ charmap "K", $8a
+ charmap "L", $8b
+ charmap "M", $8c
+ charmap "N", $8d
+ charmap "O", $8e
+ charmap "P", $8f
+ charmap "Q", $90
+ charmap "R", $91
+ charmap "S", $92
+ charmap "T", $93
+ charmap "U", $94
+ charmap "V", $95
+ charmap "W", $96
+ charmap "X", $97
+ charmap "Y", $98
+ charmap "Z", $99
- charmap "(", $9a
- charmap ")", $9b
- charmap ":", $9c
- charmap ";", $9d
- charmap "[", $9e
- charmap "]", $9f
+ charmap "(", $9a
+ charmap ")", $9b
+ charmap ":", $9c
+ charmap ";", $9d
+ charmap "[", $9e
+ charmap "]", $9f
- charmap "a", $a0
- charmap "b", $a1
- charmap "c", $a2
- charmap "d", $a3
- charmap "e", $a4
- charmap "f", $a5
- charmap "g", $a6
- charmap "h", $a7
- charmap "i", $a8
- charmap "j", $a9
- charmap "k", $aa
- charmap "l", $ab
- charmap "m", $ac
- charmap "n", $ad
- charmap "o", $ae
- charmap "p", $af
- charmap "q", $b0
- charmap "r", $b1
- charmap "s", $b2
- charmap "t", $b3
- charmap "u", $b4
- charmap "v", $b5
- charmap "w", $b6
- charmap "x", $b7
- charmap "y", $b8
- charmap "z", $b9
+ charmap "a", $a0
+ charmap "b", $a1
+ charmap "c", $a2
+ charmap "d", $a3
+ charmap "e", $a4
+ charmap "f", $a5
+ charmap "g", $a6
+ charmap "h", $a7
+ charmap "i", $a8
+ charmap "j", $a9
+ charmap "k", $aa
+ charmap "l", $ab
+ charmap "m", $ac
+ charmap "n", $ad
+ charmap "o", $ae
+ charmap "p", $af
+ charmap "q", $b0
+ charmap "r", $b1
+ charmap "s", $b2
+ charmap "t", $b3
+ charmap "u", $b4
+ charmap "v", $b5
+ charmap "w", $b6
+ charmap "x", $b7
+ charmap "y", $b8
+ charmap "z", $b9
- charmap "Ä", $c0
- charmap "Ö", $c1
- charmap "Ü", $c2
- charmap "ä", $c3
- charmap "ö", $c4
- charmap "ü", $c5
+ charmap "Ä", $c0
+ charmap "Ö", $c1
+ charmap "Ü", $c2
+ charmap "ä", $c3
+ charmap "ö", $c4
+ charmap "ü", $c5
- charmap "'d", $d0
- charmap "'l", $d1
- charmap "'m", $d2
- charmap "'r", $d3
- charmap "'s", $d4
- charmap "'t", $d5
- charmap "'v", $d6
+ charmap "'d", $d0
+ charmap "'l", $d1
+ charmap "'m", $d2
+ charmap "'r", $d3
+ charmap "'s", $d4
+ charmap "'t", $d5
+ charmap "'v", $d6
- charmap "←", $df
- charmap "'", $e0
- charmap "<PK>", $e1
- charmap "<MN>", $e2
- charmap "-", $e3
+ charmap "←", $df
+ charmap "'", $e0
+ charmap "<PK>", $e1
+ charmap "<MN>", $e2
+ charmap "-", $e3
- charmap "?", $e6
- charmap "!", $e7
- charmap ".", $e8
- charmap "&", $e9
+ charmap "?", $e6
+ charmap "!", $e7
+ charmap ".", $e8
+ charmap "&", $e9
- charmap "é", $ea
- charmap "→", $eb
- charmap "▷", $ec
- charmap "▶", $ed
- charmap "▼", $ee
- charmap "♂", $ef
- charmap "¥", $f0
- charmap "×", $f1
- charmap "<DOT>", $f2 ; same as "." in English
- charmap "/", $f3
- charmap ",", $f4
- charmap "♀", $f5
+ charmap "é", $ea
+ charmap "→", $eb
+ charmap "▷", $ec
+ charmap "▶", $ed
+ charmap "▼", $ee
+ charmap "♂", $ef
+ charmap "¥", $f0
+ charmap "×", $f1
+ charmap "<DOT>", $f2 ; same as "." in English
+ charmap "/", $f3
+ charmap ",", $f4
+ charmap "♀", $f5
- charmap "0", $f6
- charmap "1", $f7
- charmap "2", $f8
- charmap "3", $f9
- charmap "4", $fa
- charmap "5", $fb
- charmap "6", $fc
- charmap "7", $fd
- charmap "8", $fe
- charmap "9", $ff
+ charmap "0", $f6
+ charmap "1", $f7
+ charmap "2", $f8
+ charmap "3", $f9
+ charmap "4", $fa
+ charmap "5", $fb
+ charmap "6", $fc
+ charmap "7", $fd
+ charmap "8", $fe
+ charmap "9", $ff
; Japanese kana, for those bits of text that were not translated to English
--- a/macros/scripts/audio.asm
+++ b/macros/scripts/audio.asm
@@ -26,7 +26,7 @@
; MusicCommands indexes (see audio/engine.asm)
enum_start $d8
- enum notetype_cmd
+ enum notetype_cmd ; $d8
octave: macro
db notetype_cmd - (\1)
endm
@@ -39,48 +39,48 @@
endc
endm
- enum pitchoffset_cmd
+ enum pitchoffset_cmd ; $d9
pitchoffset: macro
db pitchoffset_cmd
dn \1, \2 - 1 ; octave, key
endm
- enum tempo_cmd
+ enum tempo_cmd ; $da
tempo: macro
db tempo_cmd
bigdw \1 ; tempo
endm
- enum dutycycle_cmd
+ enum dutycycle_cmd ; $db
dutycycle: macro
db dutycycle_cmd
db \1 ; duty_cycle
endm
- enum intensity_cmd
+ enum intensity_cmd ; $dc
intensity: macro
db intensity_cmd
db \1 ; intensity
endm
- enum soundinput_cmd
+ enum soundinput_cmd ; $dd
soundinput: macro
db soundinput_cmd
db \1 ; input
endm
- enum sound_duty_cmd
+ enum sound_duty_cmd ; $de
sound_duty: macro
db sound_duty_cmd
db \1 | (\2 << 2) | (\3 << 4) | (\4 << 6) ; duty sequence
endm
- enum togglesfx_cmd
+ enum togglesfx_cmd ; $df
togglesfx: macro
db togglesfx_cmd
endm
- enum slidepitchto_cmd
+ enum slidepitchto_cmd ; $e0
slidepitchto: macro
db slidepitchto_cmd
db \1 - 1 ; duration
@@ -87,7 +87,7 @@
dn \2, \3 ; octave, pitch
endm
- enum vibrato_cmd
+ enum vibrato_cmd ; $e1
vibrato: macro
db vibrato_cmd
db \1 ; delay
@@ -94,146 +94,146 @@
db \2 ; extent
endm
- enum unknownmusic0xe2_cmd
+ enum unknownmusic0xe2_cmd ; $e2
unknownmusic0xe2: macro
db unknownmusic0xe2_cmd
db \1 ; unknown
endm
- enum togglenoise_cmd
+ enum togglenoise_cmd ; $e3
togglenoise: macro
db togglenoise_cmd
db \1 ; id
endm
- enum panning_cmd
+ enum panning_cmd ; $e4
panning: macro
db panning_cmd
db \1 ; tracks
endm
- enum volume_cmd
+ enum volume_cmd ; $e5
volume: macro
db volume_cmd
db \1 ; volume
endm
- enum tone_cmd
+ enum tone_cmd ; $e6
tone: macro
db tone_cmd
bigdw \1 ; tone
endm
- enum unknownmusic0xe7_cmd
+ enum unknownmusic0xe7_cmd ; $e7
unknownmusic0xe7: macro
db unknownmusic0xe7_cmd
db \1 ; unknown
endm
- enum unknownmusic0xe8_cmd
+ enum unknownmusic0xe8_cmd ; $e8
unknownmusic0xe8: macro
db unknownmusic0xe8_cmd
db \1 ; unknown
endm
- enum tempo_relative_cmd
+ enum tempo_relative_cmd ; $e9
tempo_relative: macro
db tempo_relative_cmd
bigdw \1 ; value
endm
- enum restartchannel_cmd
+ enum restartchannel_cmd ; $ea
restartchannel: macro
db restartchannel_cmd
dw \1 ; address
endm
- enum newsong_cmd
+ enum newsong_cmd ; $eb
newsong: macro
db newsong_cmd
bigdw \1 ; id
endm
- enum sfxpriorityon_cmd
+ enum sfxpriorityon_cmd ; $ec
sfxpriorityon: macro
db sfxpriorityon_cmd
endm
- enum sfxpriorityoff_cmd
+ enum sfxpriorityoff_cmd ; $ed
sfxpriorityoff: macro
db sfxpriorityoff_cmd
endm
- enum unknownmusic0xee_cmd
+ enum unknownmusic0xee_cmd ; $ee
unknownmusic0xee: macro
db unknownmusic0xee_cmd
dw \1 ; address
endm
- enum stereopanning_cmd
+ enum stereopanning_cmd ; $ef
stereopanning: macro
db stereopanning_cmd
db \1 ; tracks
endm
- enum sfxtogglenoise_cmd
+ enum sfxtogglenoise_cmd ; $f0
sfxtogglenoise: macro
db sfxtogglenoise_cmd
db \1 ; id
endm
- enum music0xf1_cmd
+ enum music0xf1_cmd ; $f1
music0xf1: macro
db music0xf1_cmd
endm
- enum music0xf2_cmd
+ enum music0xf2_cmd ; $f2
music0xf2: macro
db music0xf2_cmd
endm
- enum music0xf3_cmd
+ enum music0xf3_cmd ; $f3
music0xf3: macro
db music0xf3_cmd
endm
- enum music0xf4_cmd
+ enum music0xf4_cmd ; $f4
music0xf4: macro
db music0xf4_cmd
endm
- enum music0xf5_cmd
+ enum music0xf5_cmd ; $f5
music0xf5: macro
db music0xf5_cmd
endm
- enum music0xf6_cmd
+ enum music0xf6_cmd ; $f6
music0xf6: macro
db music0xf6_cmd
endm
- enum music0xf7_cmd
+ enum music0xf7_cmd ; $f7
music0xf7: macro
db music0xf7_cmd
endm
- enum music0xf8_cmd
+ enum music0xf8_cmd ; $f8
music0xf8: macro
db music0xf8_cmd
endm
- enum unknownmusic0xf9_cmd
+ enum unknownmusic0xf9_cmd ; $f9
unknownmusic0xf9: macro
db unknownmusic0xf9_cmd
endm
- enum setcondition_cmd
+ enum setcondition_cmd ; $fa
setcondition: macro
db setcondition_cmd
db \1 ; condition
endm
- enum jumpif_cmd
+ enum jumpif_cmd ; $fb
jumpif: macro
db jumpif_cmd
db \1 ; condition
@@ -240,13 +240,13 @@
dw \2 ; address
endm
- enum jumpchannel_cmd
+ enum jumpchannel_cmd ; $fc
jumpchannel: macro
db jumpchannel_cmd
dw \1 ; address
endm
- enum loopchannel_cmd
+ enum loopchannel_cmd ; $fd
loopchannel: macro
db loopchannel_cmd
db \1 ; count
@@ -253,13 +253,13 @@
dw \2 ; address
endm
- enum callchannel_cmd
+ enum callchannel_cmd ; $fe
callchannel: macro
db callchannel_cmd
dw \1 ; address
endm
- enum endchannel_cmd
+ enum endchannel_cmd ; $ff
endchannel: macro
db endchannel_cmd
endm
--- a/macros/scripts/event.asm
+++ b/macros/scripts/event.asm
@@ -1,43 +1,43 @@
; ScriptCommandTable indexes (see engine/scripting.asm)
enum_start
- enum scall_command
+ enum scall_command ; $00
scall: macro
db scall_command
dw \1 ; pointer
endm
- enum farscall_command
+ enum farscall_command ; $01
farscall: macro
db farscall_command
dba \1
endm
- enum ptcall_command
+ enum ptcall_command ; $02
ptcall: macro
db ptcall_command
dw \1 ; pointer
endm
- enum jump_command
+ enum jump_command ; $03
jump: macro
db jump_command
dw \1 ; pointer
endm
- enum farjump_command
+ enum farjump_command ; $04
farjump: macro
db farjump_command
dba \1
endm
- enum ptjump_command
+ enum ptjump_command ; $05
ptjump: macro
db ptjump_command
dw \1 ; pointer
endm
- enum if_equal_command
+ enum if_equal_command ; $06
if_equal: macro
db if_equal_command
db \1 ; byte
@@ -44,7 +44,7 @@
dw \2 ; pointer
endm
- enum if_not_equal_command
+ enum if_not_equal_command ; $07
if_not_equal: macro
db if_not_equal_command
db \1 ; byte
@@ -51,19 +51,19 @@
dw \2 ; pointer
endm
- enum iffalse_command
+ enum iffalse_command ; $08
iffalse: macro
db iffalse_command
dw \1 ; pointer
endm
- enum iftrue_command
+ enum iftrue_command ; $09
iftrue: macro
db iftrue_command
dw \1 ; pointer
endm
- enum if_greater_than_command
+ enum if_greater_than_command ; $0a
if_greater_than: macro
db if_greater_than_command
db \1 ; byte
@@ -70,7 +70,7 @@
dw \2 ; pointer
endm
- enum if_less_than_command
+ enum if_less_than_command ; $0b
if_less_than: macro
db if_less_than_command
db \1 ; byte
@@ -77,25 +77,25 @@
dw \2 ; pointer
endm
- enum jumpstd_command
+ enum jumpstd_command ; $0c
jumpstd: macro
db jumpstd_command
dw \1 ; predefined_script
endm
- enum callstd_command
+ enum callstd_command ; $0d
callstd: macro
db callstd_command
dw \1 ; predefined_script
endm
- enum callasm_command
+ enum callasm_command ; $0e
callasm: macro
db callasm_command
dba \1
endm
- enum special_command
+ enum special_command ; $0f
special: macro
db special_command
dw (\1Special - SpecialsPointers) / 3
@@ -106,19 +106,19 @@
dba \1
ENDM
- enum ptcallasm_command
+ enum ptcallasm_command ; $10
ptcallasm: macro
db ptcallasm_command
dw \1 ; asm
endm
- enum checkmaptriggers_command
+ enum checkmaptriggers_command ; $11
checkmaptriggers: macro
db checkmaptriggers_command
map \1 ; map
endm
- enum domaptrigger_command
+ enum domaptrigger_command ; $12
domaptrigger: macro
db domaptrigger_command
map \1 ; map
@@ -125,53 +125,53 @@
db \2 ; trigger_id
endm
- enum checktriggers_command
+ enum checktriggers_command ; $13
checktriggers: macro
db checktriggers_command
endm
- enum dotrigger_command
+ enum dotrigger_command ; $14
dotrigger: macro
db dotrigger_command
db \1 ; trigger_id
endm
- enum writebyte_command
+ enum writebyte_command ; $15
writebyte: macro
db writebyte_command
db \1 ; value
endm
- enum addvar_command
+ enum addvar_command ; $16
addvar: macro
db addvar_command
db \1 ; value
endm
- enum random_command
+ enum random_command ; $17
random: macro
db random_command
db \1 ; input
endm
- enum checkver_command
+ enum checkver_command ; $18
checkver: macro
db checkver_command
endm
- enum copybytetovar_command
+ enum copybytetovar_command ; $19
copybytetovar: macro
db copybytetovar_command
dw \1 ; address
endm
- enum copyvartobyte_command
+ enum copyvartobyte_command ; $1a
copyvartobyte: macro
db copyvartobyte_command
dw \1 ; address
endm
- enum loadvar_command
+ enum loadvar_command ; $1b
loadvar: macro
db loadvar_command
dw \1 ; address
@@ -178,19 +178,19 @@
db \2 ; value
endm
- enum checkcode_command
+ enum checkcode_command ; $1c
checkcode: macro
db checkcode_command
db \1 ; variable_id
endm
- enum writevarcode_command
+ enum writevarcode_command ; $1d
writevarcode: macro
db writevarcode_command
db \1 ; variable_id
endm
- enum writecode_command
+ enum writecode_command ; $1e
writecode: macro
db writecode_command
db \1 ; variable_id
@@ -197,7 +197,7 @@
db \2 ; value
endm
- enum giveitem_command
+ enum giveitem_command ; $1f
giveitem: macro
db giveitem_command
db \1 ; item
@@ -208,7 +208,7 @@
endc
endm
- enum takeitem_command
+ enum takeitem_command ; $20
takeitem: macro
db takeitem_command
db \1 ; item
@@ -219,13 +219,13 @@
endc
endm
- enum checkitem_command
+ enum checkitem_command ; $21
checkitem: macro
db checkitem_command
db \1 ; item
endm
- enum givemoney_command
+ enum givemoney_command ; $22
givemoney: macro
db givemoney_command
db \1 ; account
@@ -232,7 +232,7 @@
dt \2 ; money
endm
- enum takemoney_command
+ enum takemoney_command ; $23
takemoney: macro
db takemoney_command
db \1 ; account
@@ -239,7 +239,7 @@
dt \2 ; money
endm
- enum checkmoney_command
+ enum checkmoney_command ; $24
checkmoney: macro
db checkmoney_command
db \1 ; account
@@ -246,43 +246,43 @@
dt \2 ; money
endm
- enum givecoins_command
+ enum givecoins_command ; $25
givecoins: macro
db givecoins_command
dw \1 ; coins
endm
- enum takecoins_command
+ enum takecoins_command ; $26
takecoins: macro
db takecoins_command
dw \1 ; coins
endm
- enum checkcoins_command
+ enum checkcoins_command ; $27
checkcoins: macro
db checkcoins_command
dw \1 ; coins
endm
- enum addcellnum_command
+ enum addcellnum_command ; $28
addcellnum: macro
db addcellnum_command
db \1 ; person
endm
- enum delcellnum_command
+ enum delcellnum_command ; $29
delcellnum: macro
db delcellnum_command
db \1 ; person
endm
- enum checkcellnum_command
+ enum checkcellnum_command ; $2a
checkcellnum: macro
db checkcellnum_command
db \1 ; person
endm
- enum checktime_command
+ enum checktime_command ; $2b
checktime: macro
db checktime_command
db \1 ; time
@@ -292,13 +292,13 @@
checkday EQUS "checktime DAY"
checknite EQUS "checktime NITE"
- enum checkpoke_command
+ enum checkpoke_command ; $2c
checkpoke: macro
db checkpoke_command
db \1 ; pkmn
endm
- enum givepoke_command
+ enum givepoke_command ; $2d
givepoke: macro
db givepoke_command
db \1 ; pokemon
@@ -319,7 +319,7 @@
endc
endm
- enum giveegg_command
+ enum giveegg_command ; $2e
giveegg: macro
db giveegg_command
db \1 ; pkmn
@@ -326,71 +326,71 @@
db \2 ; level
endm
- enum givepokeitem_command
+ enum givepokeitem_command ; $2f
givepokeitem: macro
db givepokeitem_command
dw \1 ; pointer
endm
- enum checkpokeitem_command
+ enum checkpokeitem_command ; $30
checkpokeitem: macro
db checkpokeitem_command
dw \1 ; pointer
endm
- enum checkevent_command
+ enum checkevent_command ; $31
checkevent: macro
db checkevent_command
dw \1 ; event_flag
endm
- enum clearevent_command
+ enum clearevent_command ; $32
clearevent: macro
db clearevent_command
dw \1 ; event_flag
endm
- enum setevent_command
+ enum setevent_command ; $33
setevent: macro
db setevent_command
dw \1 ; event_flag
endm
- enum checkflag_command
+ enum checkflag_command ; $34
checkflag: macro
db checkflag_command
dw \1 ; engine_flag
endm
- enum clearflag_command
+ enum clearflag_command ; $35
clearflag: macro
db clearflag_command
dw \1 ; engine_flag
endm
- enum setflag_command
+ enum setflag_command ; $36
setflag: macro
db setflag_command
dw \1 ; engine_flag
endm
- enum wildon_command
+ enum wildon_command ; $37
wildon: macro
db wildon_command
endm
- enum wildoff_command
+ enum wildoff_command ; $38
wildoff: macro
db wildoff_command
endm
- enum xycompare_command
+ enum xycompare_command ; $39
xycompare: macro
db xycompare_command
dw \1 ; pointer
endm
- enum warpmod_command
+ enum warpmod_command ; $3a
warpmod: macro
db warpmod_command
db \1 ; warp_id
@@ -397,13 +397,13 @@
map \2 ; map
endm
- enum blackoutmod_command
+ enum blackoutmod_command ; $3b
blackoutmod: macro
db blackoutmod_command
map \1 ; map
endm
- enum warp_command
+ enum warp_command ; $3c
warp: macro
db warp_command
map \1 ; map
@@ -411,7 +411,7 @@
db \3 ; y
endm
- enum readmoney_command
+ enum readmoney_command ; $3d
readmoney: macro
db readmoney_command
db \1 ; account
@@ -418,19 +418,19 @@
db \2 ; memory
endm
- enum readcoins_command
+ enum readcoins_command ; $3e
readcoins: macro
db readcoins_command
db \1 ; memory
endm
- enum RAM2MEM_command
+ enum RAM2MEM_command ; $3f
RAM2MEM: macro
db RAM2MEM_command
db \1 ; memory
endm
- enum pokenamemem_command
+ enum pokenamemem_command ; $40
pokenamemem: macro
db pokenamemem_command
db \1 ; pokemon
@@ -437,7 +437,7 @@
db \2 ; memory
endm
- enum itemtotext_command
+ enum itemtotext_command ; $41
itemtotext: macro
db itemtotext_command
db \1 ; item
@@ -444,13 +444,13 @@
db \2 ; memory
endm
- enum mapnametotext_command
+ enum mapnametotext_command ; $42
mapnametotext: macro
db mapnametotext_command
db \1 ; memory
endm
- enum trainertotext_command
+ enum trainertotext_command ; $43
trainertotext: macro
db trainertotext_command
db \1 ; trainer_id
@@ -458,7 +458,7 @@
db \3 ; memory
endm
- enum stringtotext_command
+ enum stringtotext_command ; $44
stringtotext: macro
db stringtotext_command
dw \1 ; text_pointer
@@ -465,51 +465,51 @@
db \2 ; memory
endm
- enum itemnotify_command
+ enum itemnotify_command ; $45
itemnotify: macro
db itemnotify_command
endm
- enum pocketisfull_command
+ enum pocketisfull_command ; $46
pocketisfull: macro
db pocketisfull_command
endm
- enum opentext_command
+ enum opentext_command ; $47
opentext: macro
db opentext_command
endm
- enum refreshscreen_command
+ enum refreshscreen_command ; $48
refreshscreen: macro
db refreshscreen_command
db \1 ; dummy
endm
- enum closetext_command
+ enum closetext_command ; $49
closetext: macro
db closetext_command
endm
- enum loadbytec2cf_command
+ enum loadbytec2cf_command ; $4a
loadbytec2cf: macro
db loadbytec2cf_command
db \1 ; byte
endm
- enum farwritetext_command
+ enum farwritetext_command ; $4b
farwritetext: macro
db farwritetext_command
dba \1
endm
- enum writetext_command
+ enum writetext_command ; $4c
writetext: macro
db writetext_command
dw \1 ; text_pointer
endm
- enum repeattext_command
+ enum repeattext_command ; $4d
repeattext: macro
db repeattext_command
db \1 ; byte
@@ -516,23 +516,23 @@
db \2 ; byte
endm
- enum yesorno_command
+ enum yesorno_command ; $4e
yesorno: macro
db yesorno_command
endm
- enum loadmenudata_command
+ enum loadmenudata_command ; $4f
loadmenudata: macro
db loadmenudata_command
dw \1 ; data
endm
- enum closewindow_command
+ enum closewindow_command ; $50
closewindow: macro
db closewindow_command
endm
- enum jumptextfaceplayer_command
+ enum jumptextfaceplayer_command ; $51
jumptextfaceplayer: macro
db jumptextfaceplayer_command
dw \1 ; text_pointer
@@ -539,7 +539,7 @@
endm
; IF _CRYSTAL
- enum farjumptext_command
+ enum farjumptext_command ; $52
farjumptext: macro
db farjumptext_command
dba \1
@@ -546,59 +546,59 @@
endm
; ENDC
- enum jumptext_command
+ enum jumptext_command ; $53
jumptext: macro
db jumptext_command
dw \1 ; text_pointer
endm
- enum waitbutton_command
+ enum waitbutton_command ; $54
waitbutton: macro
db waitbutton_command
endm
- enum buttonsound_command
+ enum buttonsound_command ; $55
buttonsound: macro
db buttonsound_command
endm
- enum pokepic_command
+ enum pokepic_command ; $56
pokepic: macro
db pokepic_command
db \1 ; pokemon
endm
- enum closepokepic_command
+ enum closepokepic_command ; $57
closepokepic: macro
db closepokepic_command
endm
- enum _2dmenu_command
+ enum _2dmenu_command ; $58
_2dmenu: macro
db _2dmenu_command
endm
- enum verticalmenu_command
+ enum verticalmenu_command ; $59
verticalmenu: macro
db verticalmenu_command
endm
- enum loadpikachudata_command
+ enum loadpikachudata_command ; $5a
loadpikachudata: macro
db loadpikachudata_command
endm
- enum randomwildmon_command
+ enum randomwildmon_command ; $5b
randomwildmon: macro
db randomwildmon_command
endm
- enum loadmemtrainer_command
+ enum loadmemtrainer_command ; $5c
loadmemtrainer: macro
db loadmemtrainer_command
endm
- enum loadwildmon_command
+ enum loadwildmon_command ; $5d
loadwildmon: macro
db loadwildmon_command
db \1 ; pokemon
@@ -605,7 +605,7 @@
db \2 ; level
endm
- enum loadtrainer_command
+ enum loadtrainer_command ; $5e
loadtrainer: macro
db loadtrainer_command
db \1 ; trainer_group
@@ -612,35 +612,35 @@
db \2 ; trainer_id
endm
- enum startbattle_command
+ enum startbattle_command ; $5f
startbattle: macro
db startbattle_command
endm
- enum reloadmapafterbattle_command
+ enum reloadmapafterbattle_command ; $60
reloadmapafterbattle: macro
db reloadmapafterbattle_command
endm
- enum catchtutorial_command
+ enum catchtutorial_command ; $61
catchtutorial: macro
db catchtutorial_command
db \1 ; byte
endm
- enum trainertext_command
+ enum trainertext_command ; $62
trainertext: macro
db trainertext_command
db \1 ; which_text
endm
- enum trainerflagaction_command
+ enum trainerflagaction_command ; $63
trainerflagaction: macro
db trainerflagaction_command
db \1 ; action
endm
- enum winlosstext_command
+ enum winlosstext_command ; $64
winlosstext: macro
db winlosstext_command
dw \1 ; win_text_pointer
@@ -647,28 +647,28 @@
dw \2 ; loss_text_pointer
endm
- enum scripttalkafter_command
+ enum scripttalkafter_command ; $65
scripttalkafter: macro
db scripttalkafter_command
endm
- enum end_if_just_battled_command
+ enum end_if_just_battled_command ; $66
end_if_just_battled: macro
db end_if_just_battled_command
endm
- enum check_just_battled_command
+ enum check_just_battled_command ; $67
check_just_battled: macro
db check_just_battled_command
endm
- enum setlasttalked_command
+ enum setlasttalked_command ; $68
setlasttalked: macro
db setlasttalked_command
db \1 ; person
endm
- enum applymovement_command
+ enum applymovement_command ; $69
applymovement: macro
db applymovement_command
db \1 ; person
@@ -675,18 +675,18 @@
dw \2 ; data
endm
- enum applymovement2_command
+ enum applymovement2_command ; $6a
applymovement2: macro
db applymovement2_command
dw \1 ; data
endm
- enum faceplayer_command
+ enum faceplayer_command ; $6b
faceplayer: macro
db faceplayer_command
endm
- enum faceperson_command
+ enum faceperson_command ; $6c
faceperson: macro
db faceperson_command
db \1 ; person1
@@ -693,7 +693,7 @@
db \2 ; person2
endm
- enum variablesprite_command
+ enum variablesprite_command ; $6d
variablesprite: macro
db variablesprite_command
db \1 - SPRITE_VARS ; byte
@@ -700,19 +700,19 @@
db \2 ; sprite
endm
- enum disappear_command
+ enum disappear_command ; $6e
disappear: macro
db disappear_command
db \1 ; person
endm
- enum appear_command
+ enum appear_command ; $6f
appear: macro
db appear_command
db \1 ; person
endm
- enum follow_command
+ enum follow_command ; $70
follow: macro
db follow_command
db \1 ; person2
@@ -719,12 +719,12 @@
db \2 ; person1
endm
- enum stopfollow_command
+ enum stopfollow_command ; $71
stopfollow: macro
db stopfollow_command
endm
- enum moveperson_command
+ enum moveperson_command ; $72
moveperson: macro
db moveperson_command
db \1 ; person
@@ -732,19 +732,19 @@
db \3 ; y
endm
- enum writepersonxy_command
+ enum writepersonxy_command ; $73
writepersonxy: macro
db writepersonxy_command
db \1 ; person
endm
- enum loademote_command
+ enum loademote_command ; $74
loademote: macro
db loademote_command
db \1 ; bubble
endm
- enum showemote_command
+ enum showemote_command ; $75
showemote: macro
db showemote_command
db \1 ; bubble
@@ -752,7 +752,7 @@
db \3 ; time
endm
- enum spriteface_command
+ enum spriteface_command ; $76
spriteface: macro
db spriteface_command
db \1 ; person
@@ -759,7 +759,7 @@
db \2 ; facing
endm
- enum follownotexact_command
+ enum follownotexact_command ; $77
follownotexact: macro
db follownotexact_command
db \1 ; person2
@@ -766,13 +766,13 @@
db \2 ; person1
endm
- enum earthquake_command
+ enum earthquake_command ; $78
earthquake: macro
db earthquake_command
db \1 ; param
endm
- enum changemap_command
+ enum changemap_command ; $79
changemap: macro
db changemap_command
db \1 ; map_bank
@@ -779,7 +779,7 @@
dw \2 ; map_data_pointer
endm
- enum changeblock_command
+ enum changeblock_command ; $7a
changeblock: macro
db changeblock_command
db \1 ; x
@@ -787,40 +787,40 @@
db \3 ; block
endm
- enum reloadmap_command
+ enum reloadmap_command ; $7b
reloadmap: macro
db reloadmap_command
endm
- enum reloadmappart_command
+ enum reloadmappart_command ; $7c
reloadmappart: macro
db reloadmappart_command
endm
- enum writecmdqueue_command
+ enum writecmdqueue_command ; $7d
writecmdqueue: macro
db writecmdqueue_command
dw \1 ; queue_pointer
endm
- enum delcmdqueue_command
+ enum delcmdqueue_command ; $7e
delcmdqueue: macro
db delcmdqueue_command
db \1 ; byte
endm
- enum playmusic_command
+ enum playmusic_command ; $7f
playmusic: macro
db playmusic_command
dw \1 ; music_pointer
endm
- enum encountermusic_command
+ enum encountermusic_command ; $80
encountermusic: macro
db encountermusic_command
endm
- enum musicfadeout_command
+ enum musicfadeout_command ; $81
musicfadeout: macro
db musicfadeout_command
dw \1 ; music
@@ -827,106 +827,106 @@
db \2 ; fadetime
endm
- enum playmapmusic_command
+ enum playmapmusic_command ; $82
playmapmusic: macro
db playmapmusic_command
endm
- enum dontrestartmapmusic_command
+ enum dontrestartmapmusic_command ; $83
dontrestartmapmusic: macro
db dontrestartmapmusic_command
endm
- enum cry_command
+ enum cry_command ; $84
cry: macro
db cry_command
dw \1 ; cry_id
endm
- enum playsound_command
+ enum playsound_command ; $85
playsound: macro
db playsound_command
dw \1 ; sound_pointer
endm
- enum waitsfx_command
+ enum waitsfx_command ; $86
waitsfx: macro
db waitsfx_command
endm
- enum warpsound_command
+ enum warpsound_command ; $87
warpsound: macro
db warpsound_command
endm
- enum specialsound_command
+ enum specialsound_command ; $88
specialsound: macro
db specialsound_command
endm
- enum passtoengine_command
+ enum passtoengine_command ; $89
passtoengine: macro
db passtoengine_command
db \1 ; data_pointer
endm
- enum newloadmap_command
+ enum newloadmap_command ; $8a
newloadmap: macro
db newloadmap_command
db \1 ; which_method
endm
- enum pause_command
+ enum pause_command ; $8b
pause: macro
db pause_command
db \1 ; length
endm
- enum deactivatefacing_command
+ enum deactivatefacing_command ; $8c
deactivatefacing: macro
db deactivatefacing_command
db \1 ; time
endm
- enum priorityjump_command
+ enum priorityjump_command ; $8d
priorityjump: macro
db priorityjump_command
dw \1 ; pointer
endm
- enum warpcheck_command
+ enum warpcheck_command ; $8e
warpcheck: macro
db warpcheck_command
endm
- enum ptpriorityjump_command
+ enum ptpriorityjump_command ; $8f
ptpriorityjump: macro
db ptpriorityjump_command
dw \1 ; pointer
endm
- enum return_command
+ enum return_command ; $90
return: macro
db return_command
endm
- enum end_command
+ enum end_command ; $91
end: macro
db end_command
endm
- enum reloadandreturn_command
+ enum reloadandreturn_command ; $92
reloadandreturn: macro
db reloadandreturn_command
db \1 ; which_method
endm
- enum end_all_command
+ enum end_all_command ; $93
end_all: macro
db end_all_command
endm
- enum pokemart_command
+ enum pokemart_command ; $94
pokemart: macro
db pokemart_command
db \1 ; dialog_id
@@ -933,59 +933,59 @@
dw \2 ; mart_id
endm
- enum elevator_command
+ enum elevator_command ; $95
elevator: macro
db elevator_command
dw \1 ; floor_list_pointer
endm
- enum trade_command
+ enum trade_command ; $96
trade: macro
db trade_command
db \1 ; trade_id
endm
- enum askforphonenumber_command
+ enum askforphonenumber_command ; $97
askforphonenumber: macro
db askforphonenumber_command
db \1 ; number
endm
- enum phonecall_command
+ enum phonecall_command ; $98
phonecall: macro
db phonecall_command
dw \1 ; caller_name
endm
- enum hangup_command
+ enum hangup_command ; $99
hangup: macro
db hangup_command
endm
- enum describedecoration_command
+ enum describedecoration_command ; $9a
describedecoration: macro
db describedecoration_command
db \1 ; byte
endm
- enum fruittree_command
+ enum fruittree_command ; $9b
fruittree: macro
db fruittree_command
db \1 ; tree_id
endm
- enum specialphonecall_command
+ enum specialphonecall_command ; $9c
specialphonecall: macro
db specialphonecall_command
dw \1 ; call_id
endm
- enum checkphonecall_command
+ enum checkphonecall_command ; $9d
checkphonecall: macro
db checkphonecall_command
endm
- enum verbosegiveitem_command
+ enum verbosegiveitem_command ; $9e
verbosegiveitem: macro
db verbosegiveitem_command
db \1 ; item
@@ -996,7 +996,7 @@
endc
endm
- enum verbosegiveitem2_command
+ enum verbosegiveitem2_command ; $9f
verbosegiveitem2: macro
db verbosegiveitem2_command
db \1 ; item
@@ -1003,7 +1003,7 @@
db \2 ; var
endm
- enum swarm_command
+ enum swarm_command ; $a0
swarm: macro
db swarm_command
db \1 ; flag
@@ -1010,17 +1010,17 @@
map \2 ; map
endm
- enum halloffame_command
+ enum halloffame_command ; $a1
halloffame: macro
db halloffame_command
endm
- enum credits_command
+ enum credits_command ; $a2
credits: macro
db credits_command
endm
- enum warpfacing_command
+ enum warpfacing_command ; $a3
warpfacing: macro
db warpfacing_command
db \1 ; facing
@@ -1029,13 +1029,13 @@
db \4 ; y
endm
- enum battletowertext_command
+ enum battletowertext_command ; $a4
battletowertext: macro
db battletowertext_command
db \1 ; memory
endm
- enum landmarktotext_command
+ enum landmarktotext_command ; $a5
landmarktotext: macro
db landmarktotext_command
db \1 ; id
@@ -1042,7 +1042,7 @@
db \2 ; memory
endm
- enum trainerclassname_command
+ enum trainerclassname_command ; $a6
trainerclassname: macro
db trainerclassname_command
db \1 ; id
@@ -1049,7 +1049,7 @@
db \2 ; memory
endm
- enum name_command
+ enum name_command ; $a7
name: macro
db name_command
db \1 ; type
@@ -1057,13 +1057,13 @@
db \3 ; memory
endm
- enum wait_command
+ enum wait_command ; $a8
wait: macro
db wait_command
db \1 ; duration
endm
- enum check_save_command
+ enum check_save_command ; $a9
check_save: macro
db check_save_command
endm
--- a/macros/scripts/gfx_anim.asm
+++ b/macros/scripts/gfx_anim.asm
@@ -14,24 +14,24 @@
enum_start $fc
- enum delanim_command ; fc
+ enum delanim_command ; $fc
delanim: macro ; used for oam
db delanim_command
endm
- enum dorepeat_command ; fd
+ enum dorepeat_command ; $fd
dorepeat: macro
db dorepeat_command
db \1 ; #
endm
- enum setrepeat_command ; fe
+ enum setrepeat_command ; $fe
setrepeat: macro
db setrepeat_command
db \1 ; #
endm
- enum endanim_command ; ff
+ enum endanim_command ; $ff
endanim: macro
db endanim_command
endm
@@ -38,7 +38,7 @@
__enum__ = $fe
- enum dorestart_command ; fe
+ enum dorestart_command ; $fe
dorestart: macro ; used for oam
db dorestart_command
endm
--- a/macros/scripts/move_anim.asm
+++ b/macros/scripts/move_anim.asm
@@ -8,7 +8,7 @@
; BattleAnimCommands indexes (see battle/anim_commands.asm)
enum_start $d0
- enum anim_obj_command ; d0
+ enum anim_obj_command ; $d0
anim_obj: macro
db anim_obj_command
db \1 ; obj
@@ -17,13 +17,13 @@
db \6 ; param
endm
- enum anim_1gfx_command ; d1
+ enum anim_1gfx_command ; $d1
anim_1gfx: macro
db anim_1gfx_command
db \1 ; gfx1
endm
- enum anim_2gfx_command ; d2
+ enum anim_2gfx_command ; $d2
anim_2gfx: macro
db anim_2gfx_command
db \1 ; gfx1
@@ -30,7 +30,7 @@
db \2 ; gfx2
endm
- enum anim_3gfx_command ; d3
+ enum anim_3gfx_command ; $d3
anim_3gfx: macro
db anim_3gfx_command
db \1 ; gfx1
@@ -38,7 +38,7 @@
db \3 ; gfx3
endm
- enum anim_4gfx_command ; d4
+ enum anim_4gfx_command ; $d4
anim_4gfx: macro
db anim_4gfx_command
db \1 ; gfx1
@@ -47,7 +47,7 @@
db \4 ; gfx4
endm
- enum anim_5gfx_command ; d5
+ enum anim_5gfx_command ; $d5
anim_5gfx: macro
db anim_5gfx_command
db \1 ; gfx1
@@ -57,13 +57,13 @@
db \5 ; gfx5
endm
- enum anim_incobj_command ; d6
+ enum anim_incobj_command ; $d6
anim_incobj: macro
db anim_incobj_command
db \1 ; id
endm
- enum anim_setobj_command ; d7
+ enum anim_setobj_command ; $d7
anim_setobj: macro
db anim_setobj_command
db \1 ; id
@@ -70,48 +70,48 @@
db \2 ; obj
endm
- enum anim_incbgeffect_command ; d8
+ enum anim_incbgeffect_command ; $d8
anim_incbgeffect: macro
db anim_incbgeffect_command
db \1 ; effect
endm
- enum anim_enemyfeetobj_command ; d9
+ enum anim_enemyfeetobj_command ; $d9
anim_enemyfeetobj: macro
db anim_enemyfeetobj_command
endm
- enum anim_playerheadobj_command ; da
+ enum anim_playerheadobj_command ; $da
anim_playerheadobj: macro
db anim_playerheadobj_command
endm
- enum anim_checkpokeball_command ; db
+ enum anim_checkpokeball_command ; $db
anim_checkpokeball: macro
db anim_checkpokeball_command
endm
- enum anim_transform_command ; dc
+ enum anim_transform_command ; $dc
anim_transform: macro
db anim_transform_command
endm
- enum anim_raisesub_command ; dd
+ enum anim_raisesub_command ; $dd
anim_raisesub: macro
db anim_raisesub_command
endm
- enum anim_dropsub_command ; de
+ enum anim_dropsub_command ; $de
anim_dropsub: macro
db anim_dropsub_command
endm
- enum anim_resetobp0_command ; df
+ enum anim_resetobp0_command ; $df
anim_resetobp0: macro
db anim_resetobp0_command
endm
- enum anim_sound_command ; e0
+ enum anim_sound_command ; $e0
anim_sound: macro
db anim_sound_command
db (\1 << 2) | \2 ; duration, tracks
@@ -118,73 +118,73 @@
db \3 ; id
endm
- enum anim_cry_command ; e1
+ enum anim_cry_command ; $e1
anim_cry: macro
db anim_cry_command
db \1 ; pitch
endm
- enum anim_minimizeopp_command ; e2
+ enum anim_minimizeopp_command ; $e2
anim_minimizeopp: macro
db anim_minimizeopp_command
endm
- enum anim_oamon_command ; e3
+ enum anim_oamon_command ; $e3
anim_oamon: macro
db anim_oamon_command
endm
- enum anim_oamoff_command ; e4
+ enum anim_oamoff_command ; $e4
anim_oamoff: macro
db anim_oamoff_command
endm
- enum anim_clearobjs_command ; e5
+ enum anim_clearobjs_command ; $e5
anim_clearobjs: macro
db anim_clearobjs_command
endm
- enum anim_beatup_command ; e6
+ enum anim_beatup_command ; $e6
anim_beatup: macro
db anim_beatup_command
endm
- enum anim_0xe7_command ; e7
+ enum anim_0xe7_command ; $e7
anim_0xe7: macro
db anim_0xe7_command
endm
- enum anim_updateactorpic_command ; e8
+ enum anim_updateactorpic_command ; $e8
anim_updateactorpic: macro
db anim_updateactorpic_command
endm
- enum anim_minimize_command ; e9
+ enum anim_minimize_command ; $e9
anim_minimize: macro
db anim_minimize_command
endm
- enum anim_0xea_command ; ea
+ enum anim_0xea_command ; $ea
anim_0xea: macro
db anim_0xea_command
endm
- enum anim_0xeb_command ; eb
+ enum anim_0xeb_command ; $eb
anim_0xeb: macro
db anim_0xeb_command
endm
- enum anim_0xec_command ; ec
+ enum anim_0xec_command ; $ec
anim_0xec: macro
db anim_0xec_command
endm
- enum anim_0xed_command ; ed
+ enum anim_0xed_command ; $ed
anim_0xed: macro
db anim_0xed_command
endm
- enum anim_if_param_and_command ; ee
+ enum anim_if_param_and_command ; $ee
anim_if_param_and: macro
db anim_if_param_and_command
db \1 ; value
@@ -191,13 +191,13 @@
dw \2 ; address
endm
- enum anim_jumpuntil_command ; ef
+ enum anim_jumpuntil_command ; $ef
anim_jumpuntil: macro
db anim_jumpuntil_command
dw \1 ; address
endm
- enum anim_bgeffect_command ; f0
+ enum anim_bgeffect_command ; $f0
anim_bgeffect: macro
db anim_bgeffect_command
db \1 ; effect
@@ -206,45 +206,45 @@
db \4 ; unknown
endm
- enum anim_bgp_command ; f1
+ enum anim_bgp_command ; $f1
anim_bgp: macro
db anim_bgp_command
db \1 ; colors
endm
- enum anim_obp0_command ; f2
+ enum anim_obp0_command ; $f2
anim_obp0: macro
db anim_obp0_command
db \1 ; colors
endm
- enum anim_obp1_command ; f3
+ enum anim_obp1_command ; $f3
anim_obp1: macro
db anim_obp1_command
db \1 ; colors
endm
- enum anim_clearsprites_command ; f4
+ enum anim_clearsprites_command ; $f4
anim_clearsprites: macro
db anim_clearsprites_command
endm
- enum anim_0xf5_command ; f5
+ enum anim_0xf5_command ; $f5
anim_0xf5: macro
db anim_0xf5_command
endm
- enum anim_0xf6_command ; f6
+ enum anim_0xf6_command ; $f6
anim_0xf6: macro
db anim_0xf6_command
endm
- enum anim_0xf7_command ; f7
+ enum anim_0xf7_command ; $f7
anim_0xf7: macro
db anim_0xf7_command
endm
- enum anim_if_param_equal_command ; f8
+ enum anim_if_param_equal_command ; $f8
anim_if_param_equal: macro
db anim_if_param_equal_command
db \1 ; value
@@ -251,18 +251,18 @@
dw \2 ; address
endm
- enum anim_setvar_command ; f9
+ enum anim_setvar_command ; $f9
anim_setvar: macro
db anim_setvar_command
db \1 ; value
endm
- enum anim_incvar_command ; fa
+ enum anim_incvar_command ; $fa
anim_incvar: macro
db anim_incvar_command
endm
- enum anim_if_var_equal_command ; fb
+ enum anim_if_var_equal_command ; $fb
anim_if_var_equal: macro
db anim_if_var_equal_command
db \1 ; value
@@ -269,13 +269,13 @@
dw \2 ; address
endm
- enum anim_jump_command ; fc
+ enum anim_jump_command ; $fc
anim_jump: macro
db anim_jump_command
dw \1 ; address
endm
- enum anim_loop_command ; fd
+ enum anim_loop_command ; $fd
anim_loop: macro
db anim_loop_command
db \1 ; count
@@ -282,13 +282,13 @@
dw \2 ; address
endm
- enum anim_call_command ; fe
+ enum anim_call_command ; $fe
anim_call: macro
db anim_call_command
dw \1 ; address
endm
- enum anim_ret_command ; ff
+ enum anim_ret_command ; $ff
anim_ret: macro
db anim_ret_command
endm
--- a/macros/scripts/movement.asm
+++ b/macros/scripts/movement.asm
@@ -3,138 +3,138 @@
; Directional movements
- enum movement_turn_head
+ enum movement_turn_head ; $00
turn_head: macro
- db movement_turn_head | \1 ; $00
+ db movement_turn_head | \1
endm
__enum__ = __enum__ + 3
- enum movement_turn_step
+ enum movement_turn_step ; $04
turn_step: macro
- db movement_turn_step | \1 ; $04
+ db movement_turn_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_slow_step
+ enum movement_slow_step ; $08
slow_step: macro
- db movement_slow_step | \1; $08
+ db movement_slow_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_step
+ enum movement_step ; $0c
step: macro
- db movement_step | \1 ; $0c
+ db movement_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_big_step
+ enum movement_big_step ; $10
big_step: macro
- db movement_big_step | \1 ; $10
+ db movement_big_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_slow_slide_step
+ enum movement_slow_slide_step ; $14
slow_slide_step: macro
- db movement_slow_slide_step | \1 ; $14
+ db movement_slow_slide_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_slide_step
+ enum movement_slide_step ; $18
slide_step: macro
- db movement_slide_step | \1 ; $18
+ db movement_slide_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_fast_slide_step
+ enum movement_fast_slide_step ; $1c
fast_slide_step: macro
- db movement_fast_slide_step | \1 ; $1c
+ db movement_fast_slide_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_turn_away
+ enum movement_turn_away ; $20
turn_away: macro
- db movement_turn_away | \1 ; $20
+ db movement_turn_away | \1
endm
__enum__ = __enum__ + 3
- enum movement_turn_in
+ enum movement_turn_in ; $24
turn_in: macro
- db movement_turn_in | \1 ; $24
+ db movement_turn_in | \1
endm
__enum__ = __enum__ + 3
- enum movement_turn_waterfall
+ enum movement_turn_waterfall ; $28
turn_waterfall: macro
- db movement_turn_waterfall | \1 ; $28
+ db movement_turn_waterfall | \1
endm
__enum__ = __enum__ + 3
- enum movement_slow_jump_step
+ enum movement_slow_jump_step ; $2c
slow_jump_step: macro
- db movement_slow_jump_step | \1 ; $2c
+ db movement_slow_jump_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_jump_step
+ enum movement_jump_step ; $30
jump_step: macro
- db movement_jump_step | \1 ; $30
+ db movement_jump_step | \1
endm
__enum__ = __enum__ + 3
- enum movement_fast_jump_step
+ enum movement_fast_jump_step ; $34
fast_jump_step: macro
- db movement_fast_jump_step | \1 ; $34
+ db movement_fast_jump_step | \1
endm
__enum__ = __enum__ + 3
; Control
- enum movement_remove_sliding
+ enum movement_remove_sliding ; $38
remove_sliding: macro
- db movement_remove_sliding ; $38
+ db movement_remove_sliding
endm
- enum movement_set_sliding
+ enum movement_set_sliding ; $39
set_sliding: macro
- db movement_set_sliding ; $39
+ db movement_set_sliding
endm
- enum movement_remove_fixed_facing
+ enum movement_remove_fixed_facing ; $3a
remove_fixed_facing: macro
- db movement_remove_fixed_facing ; $3a
+ db movement_remove_fixed_facing
endm
- enum movement_fix_facing
+ enum movement_fix_facing ; $3b
fix_facing: macro
- db movement_fix_facing ; $3b
+ db movement_fix_facing
endm
- enum movement_show_person
+ enum movement_show_person ; $3c
show_person: macro
- db movement_show_person ; $3c
+ db movement_show_person
endm
- enum movement_hide_person
+ enum movement_hide_person ; $3d
hide_person: macro
- db movement_hide_person ; $3d
+ db movement_hide_person
endm
; Sleep
- enum movement_step_sleep
+ enum movement_step_sleep ; $3e
step_sleep: macro
if \1 <= 8
db movement_step_sleep + \1 - 1
@@ -145,103 +145,102 @@
__enum__ = __enum__ + 8
- enum movement_step_end
+ enum movement_step_end ; $47
step_end: macro
- db movement_step_end ; $47
+ db movement_step_end
endm
-; Whatever Movement_48 is, it takes a one-byte parameter
- enum movement_step_48
+ enum movement_step_48 ; $48
step_48: macro
db movement_step_48
- db \1
+ db \1 ; ???
endm
- enum movement_remove_person
+ enum movement_remove_person ; $49
remove_person: macro
- db movement_remove_person ; $49
+ db movement_remove_person
endm
- enum movement_step_loop
+ enum movement_step_loop ; $4a
step_loop: macro
- db movement_step_loop ; $4a
+ db movement_step_loop
endm
- enum movement_step_4b
+ enum movement_step_4b ; $4b
step_4b: macro
- db movement_step_4b ; $4b
+ db movement_step_4b
endm
- enum movement_teleport_from
+ enum movement_teleport_from ; $4c
teleport_from: macro
- db movement_teleport_from ; $4c
+ db movement_teleport_from
endm
- enum movement_teleport_to
+ enum movement_teleport_to ; $4d
teleport_to: macro
- db movement_teleport_to ; $4d
+ db movement_teleport_to
endm
- enum movement_skyfall
+ enum movement_skyfall ; $4e
skyfall: macro
- db movement_skyfall ; $4e
+ db movement_skyfall
endm
- enum movement_step_dig
+ enum movement_step_dig ; $4f
step_dig: macro
- db movement_step_dig ; $4f
- db \1
+ db movement_step_dig
+ db \1 ; length
endm
- enum movement_step_bump
+ enum movement_step_bump ; $50
step_bump: macro
- db movement_step_bump ; $50
+ db movement_step_bump
endm
- enum movement_fish_got_bite
+ enum movement_fish_got_bite ; $51
fish_got_bite: macro
- db movement_fish_got_bite ; $51
+ db movement_fish_got_bite
endm
- enum movement_fish_cast_rod
+ enum movement_fish_cast_rod ; $52
fish_cast_rod: macro
- db movement_fish_cast_rod ; $52
+ db movement_fish_cast_rod
endm
- enum movement_hide_emote
+ enum movement_hide_emote ; $53
hide_emote: macro
- db movement_hide_emote ; $53
+ db movement_hide_emote
endm
- enum movement_show_emote
+ enum movement_show_emote ; $54
show_emote: macro
- db movement_show_emote ; $54
+ db movement_show_emote
endm
- enum movement_step_shake
+ enum movement_step_shake ; $55
step_shake: macro
- db movement_step_shake ; $55
+ db movement_step_shake
db \1 ; displacement
endm
- enum movement_tree_shake
+ enum movement_tree_shake ; $56
tree_shake: macro
db movement_tree_shake
endm
- enum movement_rock_smash
+ enum movement_rock_smash ; $57
rock_smash: macro
- db movement_rock_smash ; $57
- db \1
+ db movement_rock_smash
+ db \1 ; length
endm
- enum movement_return_dig
+ enum movement_return_dig ; $58
return_dig: macro
- db movement_return_dig ; $58
- db \1
+ db movement_return_dig
+ db \1 ; length
endm
- enum movement_skyfall_top
+ enum movement_skyfall_top ; $59
skyfall_top: macro
- db movement_skyfall_top ; $59
+ db movement_skyfall_top
endm
--- a/macros/scripts/text.asm
+++ b/macros/scripts/text.asm
@@ -1,22 +1,22 @@
-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.
-page EQUS "db $50," ; Start a new Pokédex page.
-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).
+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
- enum TX_RAM
+ enum TX_RAM ; $01
text_from_ram: MACRO
db TX_RAM
dw \1
ENDM
- enum TX_BCD
+ enum TX_BCD ; $02
text_bcd: macro
db TX_BCD
dw \1
@@ -23,13 +23,13 @@
db \2
ENDM
- enum TX_MOVE
+ enum TX_MOVE ; $03
text_move: macro
db TX_MOVE
dw \1
ENDM
- enum TX_BOX
+ enum TX_BOX ; $04
text_box: macro
db TX_BOX
dw \1
@@ -36,27 +36,27 @@
db \2, \3
ENDM
- enum TX_LOW
+ enum TX_LOW ; $05
text_low: macro
db TX_LOW
endm
- enum WAIT_BUTTON
+ enum WAIT_BUTTON ; $06
text_waitbutton: macro
db WAIT_BUTTON
endm
- enum TX_SCROLL
+ enum TX_SCROLL ; $07
text_scroll: macro
db TX_SCROLL
endm
- enum START_ASM
+ enum START_ASM ; $08
start_asm: macro
db START_ASM
endm
- enum TX_NUM
+ enum TX_NUM ; $09
deciram: macro
db TX_NUM
dw \1 ; address
@@ -63,69 +63,69 @@
dn \2, \3 ; bytes, digits
endm
- enum TX_EXIT
+ enum TX_EXIT ; $0a
interpret_data: macro
db TX_EXIT
endm
- enum TX_SOUND_0B
+ enum TX_SOUND_0B ; $0b
sound_dex_fanfare_50_79: macro
db TX_SOUND_0B
endm
- enum TX_DOTS
+ enum TX_DOTS ; $0c
limited_interpret_data: macro
db TX_DOTS
db \1
endm
- enum TX_LINK_WAIT_BUTTON
+ enum TX_LINK_WAIT_BUTTON ; $0d
link_wait_button: macro
db TX_LINK_WAIT_BUTTON
endm
- enum TX_SOUND_0E
+ enum TX_SOUND_0E ; $0e
sound_dex_fanfare_20_49: macro
db TX_SOUND_0E
endm
- enum TX_SOUND_0F
+ enum TX_SOUND_0F ; $0f
sound_item: macro
db TX_SOUND_0F
endm
- enum TX_SOUND_10
+ enum TX_SOUND_10 ; $10
sound_caught_mon: macro
db TX_SOUND_10
endm
- enum TX_SOUND_11
+ enum TX_SOUND_11 ; $11
sound_dex_fanfare_80_109: macro
db TX_SOUND_11
endm
- enum TX_SOUND_12
+ enum TX_SOUND_12 ; $12
sound_fanfare: macro
db TX_SOUND_12
endm
- enum TX_SOUND_13
+ enum TX_SOUND_13 ; $13
sound_slot_machine_start: macro
db TX_SOUND_13
endm
- enum TX_STRINGBUFFER
+ enum TX_STRINGBUFFER ; $14
text_buffer: macro
db TX_STRINGBUFFER
db \1
endm
- enum TX_DAY
+ enum TX_DAY ; $15
current_day: macro
db TX_DAY
endm
- enum TX_FAR
+ enum TX_FAR ; $16
text_jump: MACRO
db TX_FAR
dw \1
--- a/macros/scripts/trade_anim.asm
+++ b/macros/scripts/trade_anim.asm
@@ -1,255 +1,255 @@
; DoTradeAnimation.JumpTable indexes (see engine/trade/animation.asm)
enum_start
- enum tradeanim_next_command
+ enum tradeanim_next_command ; $00
tradeanim_next: macro
- db tradeanim_next_command ; 00
+ db tradeanim_next_command
endm
- enum tradeanim_show_givemon_data_command
+ enum tradeanim_show_givemon_data_command ; $01
tradeanim_show_givemon_data: macro
- db tradeanim_show_givemon_data_command ; 01
+ db tradeanim_show_givemon_data_command
endm
- enum tradeanim_show_getmon_data_command
+ enum tradeanim_show_getmon_data_command ; $02
tradeanim_show_getmon_data: macro
- db tradeanim_show_getmon_data_command ; 02
+ db tradeanim_show_getmon_data_command
endm
- enum tradeanim_enter_link_tube_command
+ enum tradeanim_enter_link_tube_command ; $03
tradeanim_enter_link_tube: macro
- db tradeanim_enter_link_tube_command ; 03
+ db tradeanim_enter_link_tube_command
endm
__enum__ set $5
- enum tradeanim_exit_link_tube_command
+ enum tradeanim_exit_link_tube_command ; $05
tradeanim_exit_link_tube: macro
- db tradeanim_exit_link_tube_command ; 05
+ db tradeanim_exit_link_tube_command
endm
- enum tradeanim_tube_to_ot_command
+ enum tradeanim_tube_to_ot_command ; $06
tradeanim_tube_to_ot: macro
- db tradeanim_tube_to_ot_command ; 06
+ db tradeanim_tube_to_ot_command
endm
-__enum__ set $e
+__enum__ set $0e
- enum tradeanim_tube_to_player_command
+ enum tradeanim_tube_to_player_command ; $0e
tradeanim_tube_to_player: macro
- db tradeanim_tube_to_player_command ; 0e
+ db tradeanim_tube_to_player_command
endm
__enum__ set $16
- enum tradeanim_sent_to_ot_text_command
+ enum tradeanim_sent_to_ot_text_command ; $16
tradeanim_sent_to_ot_text: macro
- db tradeanim_sent_to_ot_text_command ; 16
+ db tradeanim_sent_to_ot_text_command
endm
- enum tradeanim_ot_bids_farewell_command
+ enum tradeanim_ot_bids_farewell_command ; $17
tradeanim_ot_bids_farewell: macro
- db tradeanim_ot_bids_farewell_command ; 17
+ db tradeanim_ot_bids_farewell_command
endm
- enum tradeanim_take_care_of_text_command
+ enum tradeanim_take_care_of_text_command ; $18
tradeanim_take_care_of_text: macro
- db tradeanim_take_care_of_text_command ; 18
+ db tradeanim_take_care_of_text_command
endm
- enum tradeanim_ot_sends_text_1_command
+ enum tradeanim_ot_sends_text_1_command ; $19
tradeanim_ot_sends_text_1: macro
- db tradeanim_ot_sends_text_1_command ; 19
+ db tradeanim_ot_sends_text_1_command
endm
- enum tradeanim_ot_sends_text_2_command
+ enum tradeanim_ot_sends_text_2_command ; $1a
tradeanim_ot_sends_text_2: macro
- db tradeanim_ot_sends_text_2_command ; 1a
+ db tradeanim_ot_sends_text_2_command
endm
- enum tradeanim_setup_givemon_scroll_command
+ enum tradeanim_setup_givemon_scroll_command ; $1b
tradeanim_setup_givemon_scroll: macro
- db tradeanim_setup_givemon_scroll_command ; 1b
+ db tradeanim_setup_givemon_scroll_command
endm
- enum tradeanim_do_givemon_scroll_command
+ enum tradeanim_do_givemon_scroll_command ; $1c
tradeanim_do_givemon_scroll: macro
- db tradeanim_do_givemon_scroll_command ; 1c
+ db tradeanim_do_givemon_scroll_command
endm
- enum tradeanim_frontpic_scroll_command
+ enum tradeanim_frontpic_scroll_command ; $1d
tradeanim_frontpic_scroll: macro
- db tradeanim_frontpic_scroll_command ; 1d
+ db tradeanim_frontpic_scroll_command
endm
- enum tradeanim_textbox_scroll_command
+ enum tradeanim_textbox_scroll_command ; $1e
tradeanim_textbox_scroll: macro
- db tradeanim_textbox_scroll_command ; 1e
+ db tradeanim_textbox_scroll_command
endm
- enum tradeanim_scroll_out_right_command
+ enum tradeanim_scroll_out_right_command ; $1f
tradeanim_scroll_out_right: macro
- db tradeanim_scroll_out_right_command ; 1f
+ db tradeanim_scroll_out_right_command
endm
__enum__ set $21
- enum tradeanim_wait_80_command
+ enum tradeanim_wait_80_command ; $21
tradeanim_wait_80: macro
- db tradeanim_wait_80_command ; 21
+ db tradeanim_wait_80_command
endm
- enum tradeanim_wait_40_command
+ enum tradeanim_wait_40_command ; $22
tradeanim_wait_40: macro
- db tradeanim_wait_40_command ; 22
+ db tradeanim_wait_40_command
endm
- enum tradeanim_rocking_ball_command
+ enum tradeanim_rocking_ball_command ; $23
tradeanim_rocking_ball: macro
- db tradeanim_rocking_ball_command ; 23
+ db tradeanim_rocking_ball_command
endm
- enum tradeanim_drop_ball_command
+ enum tradeanim_drop_ball_command ; $24
tradeanim_drop_ball: macro
- db tradeanim_drop_ball_command ; 24
+ db tradeanim_drop_ball_command
endm
- enum tradeanim_wait_anim_command
+ enum tradeanim_wait_anim_command ; $25
tradeanim_wait_anim: macro
- db tradeanim_wait_anim_command ; 25
+ db tradeanim_wait_anim_command
endm
__enum__ set $27
- enum tradeanim_poof_command
+ enum tradeanim_poof_command ; $27
tradeanim_poof: macro
- db tradeanim_poof_command ; 27
+ db tradeanim_poof_command
endm
- enum tradeanim_bulge_through_tube_command
+ enum tradeanim_bulge_through_tube_command ; $28
tradeanim_bulge_through_tube: macro
- db tradeanim_bulge_through_tube_command ; 28
+ db tradeanim_bulge_through_tube_command
endm
- enum tradeanim_give_trademon_sfx_command
+ enum tradeanim_give_trademon_sfx_command ; $29
tradeanim_give_trademon_sfx: macro
- db tradeanim_give_trademon_sfx_command ; 29
+ db tradeanim_give_trademon_sfx_command
endm
- enum tradeanim_get_trademon_sfx_command
+ enum tradeanim_get_trademon_sfx_command ; $2a
tradeanim_get_trademon_sfx: macro
- db tradeanim_get_trademon_sfx_command ; 2a
+ db tradeanim_get_trademon_sfx_command
endm
- enum tradeanim_end_command
+ enum tradeanim_end_command ; $2b
tradeanim_end: macro
- db tradeanim_end_command ; 2b
+ db tradeanim_end_command
endm
- enum tradeanim_animate_frontpic_command
+ enum tradeanim_animate_frontpic_command ; $2c
tradeanim_animate_frontpic: macro
- db tradeanim_animate_frontpic_command ; 2c
+ db tradeanim_animate_frontpic_command
endm
- enum tradeanim_wait_96_command
+ enum tradeanim_wait_96_command ; $2d
tradeanim_wait_96: macro
- db tradeanim_wait_96_command ; 2d
+ db tradeanim_wait_96_command
endm
- enum tradeanim_wait_80_if_ot_egg_command
+ enum tradeanim_wait_80_if_ot_egg_command ; $2e
tradeanim_wait_80_if_ot_egg: macro
- db tradeanim_wait_80_if_ot_egg_command ; 2e
+ db tradeanim_wait_80_if_ot_egg_command
endm
- enum tradeanim_wait_180_if_ot_egg_command
+ enum tradeanim_wait_180_if_ot_egg_command ; $2f
tradeanim_wait_180_if_ot_egg: macro
- db tradeanim_wait_180_if_ot_egg_command ; 2f
+ db tradeanim_wait_180_if_ot_egg_command
endm
; Mobile
- enum_start 1
+ enum_start $01
- enum mobiletradeanim_showgivemon_command
+ enum mobiletradeanim_showgivemon_command ; $01
mobiletradeanim_showgivemon: macro
- db mobiletradeanim_showgivemon_command ; 01
+ db mobiletradeanim_showgivemon_command
endm
- enum mobiletradeanim_02_command
+ enum mobiletradeanim_02_command ; $02
mobiletradeanim_02: macro
- db mobiletradeanim_02_command ; 02
+ db mobiletradeanim_02_command
endm
- enum mobiletradeanim_sendmon_command
+ enum mobiletradeanim_sendmon_command ; $03
mobiletradeanim_sendmon: macro
- db mobiletradeanim_sendmon_command ; 03
+ db mobiletradeanim_sendmon_command
endm
__enum__ set $05
- enum mobiletradeanim_05_command
+ enum mobiletradeanim_05_command ; $05
mobiletradeanim_05: macro
- db mobiletradeanim_05_command ; 05
+ db mobiletradeanim_05_command
endm
- enum mobiletradeanim_06_command
+ enum mobiletradeanim_06_command ; $06
mobiletradeanim_06: macro
- db mobiletradeanim_06_command ; 06
+ db mobiletradeanim_06_command
endm
- enum mobiletradeanim_07_command
+ enum mobiletradeanim_07_command ; $07
mobiletradeanim_07: macro
- db mobiletradeanim_07_command ; 07
+ db mobiletradeanim_07_command
endm
- enum mobiletradeanim_receivemon_command
+ enum mobiletradeanim_receivemon_command ; $08
mobiletradeanim_receivemon: macro
- db mobiletradeanim_receivemon_command ; 08
+ db mobiletradeanim_receivemon_command
endm
__enum__ set $0b
- enum mobiletradeanim_showgetmon_command
+ enum mobiletradeanim_showgetmon_command ; $0b
mobiletradeanim_showgetmon: macro
- db mobiletradeanim_showgetmon_command ; 0b
+ db mobiletradeanim_showgetmon_command
endm
- enum mobiletradeanim_end_command
+ enum mobiletradeanim_end_command ; $0c
mobiletradeanim_end: macro
- db mobiletradeanim_end_command ; 0c
+ db mobiletradeanim_end_command
endm
- enum mobiletradeanim_showgtsgivemon_command
+ enum mobiletradeanim_showgtsgivemon_command ; $0d
mobiletradeanim_showgtsgivemon: macro
- db mobiletradeanim_showgtsgivemon_command ; 0d
+ db mobiletradeanim_showgtsgivemon_command
endm
- enum mobiletradeanim_showgtsgetmon_command
+ enum mobiletradeanim_showgtsgetmon_command ; $0e
mobiletradeanim_showgtsgetmon: macro
- db mobiletradeanim_showgtsgetmon_command ; 0e
+ db mobiletradeanim_showgtsgetmon_command
endm
- enum mobiletradeanim_0f_command
+ enum mobiletradeanim_0f_command ; $0f
mobiletradeanim_0f: macro
- db mobiletradeanim_0f_command ; 0f
+ db mobiletradeanim_0f_command
endm
- enum mobiletradeanim_10_command
+ enum mobiletradeanim_10_command ; $10
mobiletradeanim_10: macro
- db mobiletradeanim_10_command ; 10
+ db mobiletradeanim_10_command
endm
- enum mobiletradeanim_11_command
+ enum mobiletradeanim_11_command ; $11
mobiletradeanim_11: macro
- db mobiletradeanim_11_command ; 11
+ db mobiletradeanim_11_command
endm
- enum mobiletradeanim_12_command
+ enum mobiletradeanim_12_command ; $12
mobiletradeanim_12: macro
- db mobiletradeanim_12_command ; 12
+ db mobiletradeanim_12_command
endm
- enum mobiletradeanim_showoddegg_command
+ enum mobiletradeanim_showoddegg_command ; $13
mobiletradeanim_showoddegg: macro
- db mobiletradeanim_showoddegg_command ; 13
+ db mobiletradeanim_showoddegg_command
endm
--- a/main.asm
+++ b/main.asm
@@ -226,12 +226,12 @@
; table defining which characters are actually text commands
; format:
; ≥ <
- db "<START>", $04 + 1
+ db "<START>", TX_BOX + 1
db "<PLAY_G>", $18 + 1
db $1d, "%" + 1
db $35, "<GREEN>" + 1
db "<ENEMY>", "<ENEMY>" + 1
- db $49, "<TM>" + 1
+ db "<MOM>", "<TM>" + 1
db "<ROCKET>", "┘" + 1
db -1 ; end