dump script command, special var, and std script pointers
This commit is contained in:
+2
-2
@@ -509,7 +509,7 @@ _0806E500: .4byte gUnknown_300507C
|
||||
_0806E504: .4byte gSaveBlock1Ptr
|
||||
_0806E508: .4byte 0xffff9000
|
||||
_0806E50C:
|
||||
ldr r0, _0806E520 @ =gUnknown_815FD0C
|
||||
ldr r0, _0806E520 @ =gSpecialVars
|
||||
ldr r3, _0806E524 @ =0xffff8000
|
||||
adds r1, r6, r3
|
||||
lsls r1, 2
|
||||
@@ -520,7 +520,7 @@ _0806E518:
|
||||
pop {r1}
|
||||
bx r1
|
||||
.align 2, 0
|
||||
_0806E520: .4byte gUnknown_815FD0C
|
||||
_0806E520: .4byte gSpecialVars
|
||||
_0806E524: .4byte 0xffff8000
|
||||
thumb_func_end GetVarPointer
|
||||
|
||||
|
||||
+12
-12
@@ -48,7 +48,7 @@ sub_8069EFC: @ 8069EFC
|
||||
lsrs r0, 14
|
||||
ldr r1, _08069F18 @ =gSpecials
|
||||
adds r1, r0, r1
|
||||
ldr r0, _08069F1C @ =gUnknown_8160450
|
||||
ldr r0, _08069F1C @ =gStdScripts
|
||||
cmp r1, r0
|
||||
bcs _08069F20
|
||||
ldr r0, [r1]
|
||||
@@ -56,7 +56,7 @@ sub_8069EFC: @ 8069EFC
|
||||
b _08069F2C
|
||||
.align 2, 0
|
||||
_08069F18: .4byte gSpecials
|
||||
_08069F1C: .4byte gUnknown_8160450
|
||||
_08069F1C: .4byte gStdScripts
|
||||
_08069F20:
|
||||
ldr r0, _08069F34 @ =gUnknown_83A725C "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scrcmd.c"
|
||||
ldr r2, _08069F38 @ =gUnknown_83A7290 "0"
|
||||
@@ -87,7 +87,7 @@ sub_8069F3C: @ 8069F3C
|
||||
lsrs r0, 14
|
||||
ldr r1, _08069F6C @ =gSpecials
|
||||
adds r1, r0, r1
|
||||
ldr r0, _08069F70 @ =gUnknown_8160450
|
||||
ldr r0, _08069F70 @ =gStdScripts
|
||||
cmp r1, r0
|
||||
bcs _08069F74
|
||||
ldr r0, [r1]
|
||||
@@ -96,7 +96,7 @@ sub_8069F3C: @ 8069F3C
|
||||
b _08069F80
|
||||
.align 2, 0
|
||||
_08069F6C: .4byte gSpecials
|
||||
_08069F70: .4byte gUnknown_8160450
|
||||
_08069F70: .4byte gStdScripts
|
||||
_08069F74:
|
||||
ldr r0, _08069F88 @ =gUnknown_83A725C "C:/WORK/POKeFRLG/src/pm_lgfr_ose/source/scrcmd.c"
|
||||
ldr r1, _08069F8C @ =0x00000107
|
||||
@@ -368,7 +368,7 @@ ScrCmd_gotostd: @ 806A150
|
||||
adds r0, 0x1
|
||||
str r0, [r2, 0x8]
|
||||
lsls r1, 2
|
||||
ldr r0, _0806A178 @ =gUnknown_8160450
|
||||
ldr r0, _0806A178 @ =gStdScripts
|
||||
adds r1, r0
|
||||
ldr r0, _0806A17C @ =gUnknown_8160478
|
||||
cmp r1, r0
|
||||
@@ -381,7 +381,7 @@ _0806A170:
|
||||
pop {r1}
|
||||
bx r1
|
||||
.align 2, 0
|
||||
_0806A178: .4byte gUnknown_8160450
|
||||
_0806A178: .4byte gStdScripts
|
||||
_0806A17C: .4byte gUnknown_8160478
|
||||
thumb_func_end ScrCmd_gotostd
|
||||
|
||||
@@ -394,7 +394,7 @@ ScrCmd_callstd: @ 806A180
|
||||
adds r0, 0x1
|
||||
str r0, [r2, 0x8]
|
||||
lsls r1, 2
|
||||
ldr r0, _0806A1A8 @ =gUnknown_8160450
|
||||
ldr r0, _0806A1A8 @ =gStdScripts
|
||||
adds r1, r0
|
||||
ldr r0, _0806A1AC @ =gUnknown_8160478
|
||||
cmp r1, r0
|
||||
@@ -407,7 +407,7 @@ _0806A1A0:
|
||||
pop {r1}
|
||||
bx r1
|
||||
.align 2, 0
|
||||
_0806A1A8: .4byte gUnknown_8160450
|
||||
_0806A1A8: .4byte gStdScripts
|
||||
_0806A1AC: .4byte gUnknown_8160478
|
||||
thumb_func_end ScrCmd_callstd
|
||||
|
||||
@@ -432,7 +432,7 @@ ScrCmd_gotostd_if: @ 806A1B0
|
||||
cmp r0, 0x1
|
||||
bne _0806A1E8
|
||||
lsls r0, r4, 2
|
||||
ldr r1, _0806A1F4 @ =gUnknown_8160450
|
||||
ldr r1, _0806A1F4 @ =gStdScripts
|
||||
adds r1, r0, r1
|
||||
ldr r0, _0806A1F8 @ =gUnknown_8160478
|
||||
cmp r1, r0
|
||||
@@ -447,7 +447,7 @@ _0806A1E8:
|
||||
bx r1
|
||||
.align 2, 0
|
||||
_0806A1F0: .4byte gUnknown_83A7248
|
||||
_0806A1F4: .4byte gUnknown_8160450
|
||||
_0806A1F4: .4byte gStdScripts
|
||||
_0806A1F8: .4byte gUnknown_8160478
|
||||
thumb_func_end ScrCmd_gotostd_if
|
||||
|
||||
@@ -472,7 +472,7 @@ ScrCmd_callstd_if: @ 806A1FC
|
||||
cmp r0, 0x1
|
||||
bne _0806A234
|
||||
lsls r0, r4, 2
|
||||
ldr r1, _0806A240 @ =gUnknown_8160450
|
||||
ldr r1, _0806A240 @ =gStdScripts
|
||||
adds r1, r0, r1
|
||||
ldr r0, _0806A244 @ =gUnknown_8160478
|
||||
cmp r1, r0
|
||||
@@ -487,7 +487,7 @@ _0806A234:
|
||||
bx r1
|
||||
.align 2, 0
|
||||
_0806A23C: .4byte gUnknown_83A7248
|
||||
_0806A240: .4byte gUnknown_8160450
|
||||
_0806A240: .4byte gStdScripts
|
||||
_0806A244: .4byte gUnknown_8160478
|
||||
thumb_func_end ScrCmd_callstd_if
|
||||
|
||||
|
||||
+71
-13
@@ -1,18 +1,46 @@
|
||||
.section script_data, "aw", %progbits
|
||||
|
||||
gScriptCmdTable:: @ 815F9B4
|
||||
.incbin "baserom.gba", 0x15F9B4, 0x354
|
||||
.include "data/script_cmd_table.inc"
|
||||
|
||||
gScriptCmdTableEnd:: @ 815FD08
|
||||
.incbin "baserom.gba", 0x15FD08, 0x4
|
||||
|
||||
gUnknown_815FD0C:: @ 815FD0C
|
||||
.incbin "baserom.gba", 0x15FD0C, 0x54
|
||||
.align 2
|
||||
gSpecialVars:: @ 815FD0C
|
||||
.4byte gUnknown_20370B8
|
||||
.4byte gUnknown_20370BA
|
||||
.4byte gUnknown_20370BC
|
||||
.4byte gUnknown_20370BE
|
||||
.4byte gUnknown_20370C0
|
||||
.4byte gSpecialVar_0x8005
|
||||
.4byte gUnknown_20370C4
|
||||
.4byte gUnknown_20370C6
|
||||
.4byte gUnknown_20370C8
|
||||
.4byte gUnknown_20370CA
|
||||
.4byte gUnknown_20370CC
|
||||
.4byte gUnknown_20370CE
|
||||
.4byte gUnknown_20370D4
|
||||
.4byte gUnknown_20370D0
|
||||
.4byte gUnknown_203AD30
|
||||
.4byte gUnknown_20370D2
|
||||
.4byte gSpecialVar_MonBoxId
|
||||
.4byte gSpecialVar_MonBoxPos
|
||||
.4byte gUnknown_20370DA
|
||||
.4byte gUnknown_20370DC
|
||||
.4byte gUnknown_20370DE
|
||||
|
||||
.include "data/specials.inc"
|
||||
|
||||
gUnknown_8160450:: @ 8160450
|
||||
.incbin "baserom.gba", 0x160450, 0x28
|
||||
.align 2
|
||||
gStdScripts:: @ 8160450
|
||||
.4byte gStdScript_81A667B
|
||||
.4byte gStdScript_81A67B3
|
||||
.4byte gStdScript_81A4E3F
|
||||
.4byte gStdScript_81A4E4A
|
||||
.4byte gStdScript_81A4E54
|
||||
.4byte gStdScript_81A4E5C
|
||||
.4byte gStdScript_81A501F
|
||||
.4byte gStdScript_81A676C
|
||||
.4byte gStdScript_81A8E58
|
||||
.4byte gStdScript_81A4E66
|
||||
gStdScripts_End::
|
||||
|
||||
gUnknown_8160478:: @ 8160478
|
||||
.incbin "baserom.gba", 0x160478, 0x886C
|
||||
@@ -21,7 +49,22 @@ gUnknown_8168CE4:: @ 8168CE4
|
||||
.incbin "baserom.gba", 0x168CE4, 0x33
|
||||
|
||||
gUnknown_8168D17:: @ 8168D17
|
||||
.incbin "baserom.gba", 0x168D17, 0x3C19D
|
||||
.incbin "baserom.gba", 0x168D17, 0x3C128
|
||||
|
||||
gStdScript_81A4E3F::
|
||||
.incbin "baserom.gba", 0x1A4E3F, 0xB
|
||||
|
||||
gStdScript_81A4E4A::
|
||||
.incbin "baserom.gba", 0x1A4E4A, 0xA
|
||||
|
||||
gStdScript_81A4E54::
|
||||
.incbin "baserom.gba", 0x1A4E54, 0x8
|
||||
|
||||
gStdScript_81A4E5C::
|
||||
.incbin "baserom.gba", 0x1A4E5C, 0xA
|
||||
|
||||
gStdScript_81A4E66::
|
||||
.incbin "baserom.gba", 0x1A4E66, 0x4E
|
||||
|
||||
gUnknown_81A4EB4:: @ 81A4EB4
|
||||
.incbin "baserom.gba", 0x1A4EB4, 0xD
|
||||
@@ -39,7 +82,10 @@ gUnknown_81A4F3E:: @ 81A4F3E
|
||||
.incbin "baserom.gba", 0x1A4F3E, 0x35
|
||||
|
||||
gUnknown_81A4F73:: @ 81A4F73
|
||||
.incbin "baserom.gba", 0x1A4F73, 0x117
|
||||
.incbin "baserom.gba", 0x1A4F73, 0xAC
|
||||
|
||||
gStdScript_81A501F::
|
||||
.incbin "baserom.gba", 0x1A501F, 0x6B
|
||||
|
||||
gUnknown_81A508A:: @ 81A508A
|
||||
.incbin "baserom.gba", 0x1A508A, 0x3EC
|
||||
@@ -51,7 +97,16 @@ gUnknown_81A6481:: @ 81A6481
|
||||
.incbin "baserom.gba", 0x1A6481, 0xCA
|
||||
|
||||
gUnknown_81A654B:: @ 81A654B
|
||||
.incbin "baserom.gba", 0x1A654B, 0x2F8
|
||||
.incbin "baserom.gba", 0x1A654B, 0x130
|
||||
|
||||
gStdScript_81A667B::
|
||||
.incbin "baserom.gba", 0x1A667B, 0xF1
|
||||
|
||||
gStdScript_81A676C::
|
||||
.incbin "baserom.gba", 0x1A676C, 0x47
|
||||
|
||||
gStdScript_81A67B3::
|
||||
.incbin "baserom.gba", 0x1A67B3, 0x90
|
||||
|
||||
gUnknown_81A6843:: @ 81A6843
|
||||
.incbin "baserom.gba", 0x1A6843, 0x112
|
||||
@@ -225,7 +280,10 @@ gUnknown_81A8DD8:: @ 81A8DD8
|
||||
.incbin "baserom.gba", 0x1A8DD8, 0x25
|
||||
|
||||
gUnknown_81A8DFD:: @ 81A8DFD
|
||||
.incbin "baserom.gba", 0x1A8DFD, 0x4309
|
||||
.incbin "baserom.gba", 0x1A8DFD, 0x5B
|
||||
|
||||
gStdScript_81A8E58::
|
||||
.incbin "baserom.gba", 0x1A8E58, 0x42AE
|
||||
|
||||
.include "data/text/fame_checker.inc"
|
||||
|
||||
|
||||
@@ -0,0 +1,219 @@
|
||||
.align 2
|
||||
|
||||
gScriptCmdTable:: @ 815F9B4
|
||||
.4byte sub_8069ED0
|
||||
.4byte sub_8069ED4
|
||||
.4byte ScrCmd_end
|
||||
.4byte ScrCmd_return
|
||||
.4byte ScrCmd_call
|
||||
.4byte ScrCmd_goto
|
||||
.4byte ScrCmd_goto_if
|
||||
.4byte ScrCmd_call_if
|
||||
.4byte ScrCmd_gotostd
|
||||
.4byte ScrCmd_callstd
|
||||
.4byte ScrCmd_gotostd_if
|
||||
.4byte ScrCmd_callstd_if
|
||||
.4byte ScrCmd_gotoram
|
||||
.4byte ScrCmd_killscript
|
||||
.4byte ScrCmd_setmysteryeventstatus
|
||||
.4byte ScrCmd_loadword
|
||||
.4byte ScrCmd_loadbyte
|
||||
.4byte ScrCmd_writebytetoaddr
|
||||
.4byte ScrCmd_loadbytefromaddr
|
||||
.4byte ScrCmd_setptrbyte
|
||||
.4byte ScrCmd_copylocal
|
||||
.4byte ScrCmd_copybyte
|
||||
.4byte ScrCmd_setvar
|
||||
.4byte ScrCmd_addvar
|
||||
.4byte ScrCmd_subvar
|
||||
.4byte ScrCmd_copyvar
|
||||
.4byte ScrCmd_setorcopyvar
|
||||
.4byte ScrCmd_compare_local_to_local
|
||||
.4byte ScrCmd_compare_local_to_value
|
||||
.4byte ScrCmd_compare_local_to_addr
|
||||
.4byte ScrCmd_compare_addr_to_local
|
||||
.4byte ScrCmd_compare_addr_to_value
|
||||
.4byte ScrCmd_compare_addr_to_addr
|
||||
.4byte ScrCmd_compare_var_to_value
|
||||
.4byte ScrCmd_compare_var_to_var
|
||||
.4byte ScrCmd_callnative
|
||||
.4byte ScrCmd_gotonative
|
||||
.4byte sub_8069EFC
|
||||
.4byte sub_8069F3C
|
||||
.4byte sub_8069FA4
|
||||
.4byte ScrCmd_delay
|
||||
.4byte ScrCmd_setflag
|
||||
.4byte ScrCmd_clearflag
|
||||
.4byte ScrCmd_checkflag
|
||||
.4byte sub_806A9D4
|
||||
.4byte sub_806A9D8
|
||||
.4byte sub_806A9DC
|
||||
.4byte ScrCmd_playse
|
||||
.4byte sub_806B094
|
||||
.4byte ScrCmd_playfanfare
|
||||
.4byte sub_806B0CC
|
||||
.4byte sub_806B0E0
|
||||
.4byte sub_806B120
|
||||
.4byte sub_806B134
|
||||
.4byte sub_806B154
|
||||
.4byte sub_806B17C
|
||||
.4byte sub_806B1C8
|
||||
.4byte ScrCmd_warp
|
||||
.4byte ScrCmd_warpsilent
|
||||
.4byte ScrCmd_warpdoor
|
||||
.4byte ScrCmd_warphole
|
||||
.4byte sub_806AC70
|
||||
.4byte ScrCmd_setwarp
|
||||
.4byte ScrCmd_setdynamicwarp
|
||||
.4byte sub_806AE90
|
||||
.4byte sub_806AF10
|
||||
.4byte ScrCmd_getplayerxy
|
||||
.4byte ScrCmd_getpartysize
|
||||
.4byte sub_806A610
|
||||
.4byte ScrCmd_takeitem
|
||||
.4byte sub_806A6A0
|
||||
.4byte sub_806A6E4
|
||||
.4byte ScrCmd_checkitemtype
|
||||
.4byte ScrCmd_givepcitem
|
||||
.4byte ScrCmd_checkpcitem
|
||||
.4byte sub_806A7DC
|
||||
.4byte sub_806A7F0
|
||||
.4byte sub_806A818
|
||||
.4byte sub_806A804
|
||||
.4byte ScrCmd_applymovement
|
||||
.4byte ScrCmd_applymovement_at
|
||||
.4byte ScrCmd_waitmovement
|
||||
.4byte ScrCmd_waitmovement_at
|
||||
.4byte ScrCmd_removeobject
|
||||
.4byte ScrCmd_removeobject_at
|
||||
.4byte ScrCmd_addobject
|
||||
.4byte ScrCmd_addobject_at
|
||||
.4byte ScrCmd_setobjectxy
|
||||
.4byte ScrCmd_showobject_at
|
||||
.4byte ScrCmd_hideobject_at
|
||||
.4byte ScrCmd_faceplayer
|
||||
.4byte ScrCmd_turnobject
|
||||
.4byte ScrCmd_trainerbattle
|
||||
.4byte sub_806C2D8
|
||||
.4byte ScrCmd_ontrainerbattleend
|
||||
.4byte ScrCmd_ontrainerbattleendgoto
|
||||
.4byte ScrCmd_checktrainerflag
|
||||
.4byte ScrCmd_settrainerflag
|
||||
.4byte ScrCmd_cleartrainerflag
|
||||
.4byte ScrCmd_setobjectxyperm
|
||||
.4byte ScrCmd_moveobjectoffscreen
|
||||
.4byte ScrCmd_setobjectmovementtype
|
||||
.4byte sub_806B878
|
||||
.4byte sub_806B80C
|
||||
.4byte sub_806B88C
|
||||
.4byte ScrCmd_lockall
|
||||
.4byte ScrCmd_lock
|
||||
.4byte ScrCmd_releaseall
|
||||
.4byte ScrCmd_release
|
||||
.4byte sub_806BA3C
|
||||
.4byte ScrCmd_yesnobox
|
||||
.4byte ScrCmd_multichoice
|
||||
.4byte ScrCmd_multichoicedefault
|
||||
.4byte ScrCmd_multichoicegrid
|
||||
.4byte sub_806BB38
|
||||
.4byte sub_806BB8C
|
||||
.4byte sub_806BB98
|
||||
.4byte sub_806BB9C
|
||||
.4byte sub_806BBD8
|
||||
.4byte sub_806BBF8
|
||||
.4byte sub_806BC04
|
||||
.4byte ScrCmd_givemon
|
||||
.4byte ScrCmd_giveegg
|
||||
.4byte ScrCmd_setmonmove
|
||||
.4byte ScrCmd_checkpartymove
|
||||
.4byte ScrCmd_bufferspeciesname
|
||||
.4byte ScrCmd_bufferleadmonspeciesname
|
||||
.4byte ScrCmd_bufferpartymonnick
|
||||
.4byte ScrCmd_bufferitemname
|
||||
.4byte sub_806BE34
|
||||
.4byte ScrCmd_buffermovename
|
||||
.4byte ScrCmd_buffernumberstring
|
||||
.4byte ScrCmd_bufferstdstring
|
||||
.4byte ScrCmd_bufferstring
|
||||
.4byte sub_806C3AC
|
||||
.4byte sub_806C3C0
|
||||
.4byte sub_806C3D4
|
||||
.4byte ScrCmd_playslotmachine
|
||||
.4byte sub_806C410
|
||||
.4byte sub_806C418
|
||||
.4byte sub_806C424
|
||||
.4byte sub_806C428
|
||||
.4byte sub_806C42C
|
||||
.4byte ScrCmd_random
|
||||
.4byte ScrCmd_givemoney
|
||||
.4byte ScrCmd_takemoney
|
||||
.4byte ScrCmd_checkmoney
|
||||
.4byte sub_806C1CC
|
||||
.4byte sub_806C21C
|
||||
.4byte sub_806C228
|
||||
.4byte sub_806C414
|
||||
.4byte ScrCmd_fadescreen
|
||||
.4byte ScrCmd_fadescreenspeed
|
||||
.4byte ScrCmd_setflashradius
|
||||
.4byte ScrCmd_animateflash
|
||||
.4byte sub_806B85C
|
||||
.4byte ScrCmd_dofieldeffect
|
||||
.4byte ScrCmd_setfieldeffectarg
|
||||
.4byte ScrCmd_waitfieldeffect
|
||||
.4byte ScrCmd_setrespawn
|
||||
.4byte ScrCmd_checkplayergender
|
||||
.4byte ScrCmd_playmoncry
|
||||
.4byte ScrCmd_setmetatile
|
||||
.4byte ScrCmd_resetweather
|
||||
.4byte ScrCmd_setweather
|
||||
.4byte ScrCmd_doweather
|
||||
.4byte ScrCmd_setstepcallback
|
||||
.4byte ScrCmd_setmaplayoutindex
|
||||
.4byte ScrCmd_setobjectpriority
|
||||
.4byte ScrCmd_resetobjectpriority
|
||||
.4byte ScrCmd_createvobject
|
||||
.4byte ScrCmd_turnvobject
|
||||
.4byte ScrCmd_opendoor
|
||||
.4byte ScrCmd_closedoor
|
||||
.4byte sub_806C688
|
||||
.4byte ScrCmd_setdooropen
|
||||
.4byte ScrCmd_setdoorclosed
|
||||
.4byte sub_806C724
|
||||
.4byte sub_806C728
|
||||
.4byte ScrCmd_checkcoins
|
||||
.4byte ScrCmd_givecoins
|
||||
.4byte ScrCmd_takecoins
|
||||
.4byte ScrCmd_setwildbattle
|
||||
.4byte sub_806C39C
|
||||
.4byte ScrCmd_setvaddress
|
||||
.4byte ScrCmd_vgoto
|
||||
.4byte ScrCmd_vcall
|
||||
.4byte ScrCmd_vgoto_if
|
||||
.4byte ScrCmd_vcall_if
|
||||
.4byte ScrCmd_vmessage
|
||||
.4byte ScrCmd_vloadword
|
||||
.4byte ScrCmd_vbufferstring
|
||||
.4byte sub_806C258
|
||||
.4byte ScrCmd_hidecoinsbox
|
||||
.4byte ScrCmd_updatecoinsbox
|
||||
.4byte ScrCmd_incrementgamestat
|
||||
.4byte ScrCmd_setescapewarp
|
||||
.4byte sub_806C540
|
||||
.4byte ScrCmd_bufferboxname
|
||||
.4byte sub_806B7EC
|
||||
.4byte sub_806B828
|
||||
.4byte sub_806B850
|
||||
.4byte sub_806C7BC
|
||||
.4byte sub_806C7C8
|
||||
.4byte sub_806A888
|
||||
.4byte ScrCmd_setmonobedient
|
||||
.4byte ScrCmd_checkmonobedience
|
||||
.4byte sub_806A28C
|
||||
.4byte sub_806A8C0
|
||||
.4byte sub_806ACF8
|
||||
.4byte sub_806C844
|
||||
.4byte sub_806BC40
|
||||
.4byte sub_806BD90
|
||||
|
||||
gScriptCmdTableEnd:: @ 815FD08
|
||||
.4byte sub_8069ED0
|
||||
Reference in New Issue
Block a user