Port/decomp scrcmd

This commit is contained in:
Diegoisawesome
2017-10-12 02:06:19 -05:00
parent 8914645231
commit f1b6358047
115 changed files with 3540 additions and 6621 deletions

View File

@@ -1,229 +1,229 @@
.align 2
gScriptCmdTable:: @ 81DB67C
.4byte s00_nop
.4byte s01_nop
.4byte s02_end
.4byte s03_return
.4byte s04_call
.4byte s05_goto
.4byte s06_if_jump
.4byte s07_if_call
.4byte s08_jumpstd
.4byte s09_callstd
.4byte s0A_jumpstd_if
.4byte s0B_callstd_if
.4byte s0C_restore_execution_after_sCF
.4byte s0D_endscript_killram
.4byte s0E_set_byte
.4byte s0F_u32_var_to_const
.4byte s10_u8_var_to_const
.4byte s11_u8_ptr_to_const
.4byte s12_u32_var_to_ptr
.4byte s13_u8_var_to_ptr
.4byte s14_u32_var_to_var
.4byte s15_u8_ptr_to_ptr
.4byte s16_u16_gvar_to_const
.4byte s17_u16_gvar_add_const
.4byte sub_809993C
.4byte s19_u16_gvar_gvar
.4byte s1A_u16_gvar_gvar
.4byte s1B_cmp_u8_var_var
.4byte s1C_cmp_u8_var_const
.4byte s1D_cmp_u8_var_ptr
.4byte s1E_cmp_u8_ptr_var
.4byte s1F_cmp_u8_ptr_const
.4byte s20_cmp_u8_ptr_ptr
.4byte s21_cmp_u16_gvar_const
.4byte s22_cmp_u16_gvar_gvar
.4byte s23_execute_ASM
.4byte s24_execute_ASM_2
.4byte s25_extended_cmd
.4byte s26_extended_cmd_setvar
.4byte s27_set_to_waitstate
.4byte s28_pause
.4byte s29_flag_set
.4byte s2A_flag_clear
.4byte s2B_flag_check
.4byte s2C_unknown
.4byte s2D_unknown
.4byte s2E_unknown
.4byte s2F_music_play
.4byte s30_music_check
.4byte s31_PlayFanfare
.4byte s32_fanfare_wait
.4byte s33_play_music
.4byte s34_unknown
.4byte s35_fade_to_default
.4byte s36_fade_to_music
.4byte s37_fadeout
.4byte s38_fadein
.4byte s39_warp_sfx
.4byte s3A_warp_new_music
.4byte s3B_warp_keep_music
.4byte sub_809A054
.4byte s3D_warp_v4
.4byte s3E_set_new_map
.4byte s3F_set_new_map_DMA
.4byte sub_809A2DC
.4byte sub_809A35C
.4byte s42_get_map_camera_pos
.4byte s43_get_player_party_count
.4byte sub_80999A0
.4byte sub_80999E4
.4byte sub_8099A28
.4byte sub_8099A6C
.4byte s48_get_item_type
.4byte sub_8099ADC
.4byte sub_8099B20
.4byte sub_8099B64
.4byte sub_8099B90
.4byte sub_8099BE8
.4byte sub_8099BBC
.4byte s4F_execute_movement
.4byte s50_execute_movement_remote
.4byte s51_waitmove
.4byte s52_waitmove_remote
.4byte s53_hide_sprite
.4byte s54_hide_sprite_set_coords
.4byte s55_show_sprite
.4byte s56_show_sprite_set_coords
.4byte s57_move_sprites
.4byte s58_npc_f1_clear_x20
.4byte s59_npc_f1_set_x20
.4byte s5A_face_player
.4byte s5B_npc_set_direction
.4byte s5C_trainer_battle_configure_and_start
.4byte sub_809B5E4
.4byte sub_809B5F0
.4byte sub_809B604
.4byte s60_check_trainer_flag
.4byte s61_set_trainer_flag
.4byte s62_unset_trainer_flag
.4byte s63_new_sprite_location_permanent
.4byte s64_set_sprite_top_left_corner
.4byte s65_set_sprite_behaviour
.4byte sub_809AC78
.4byte s67_execute_box
.4byte s68_close_box
.4byte sub_809AAC4
.4byte sub_809AAEC
.4byte s6B_release
.4byte s6C_release_2
.4byte sub_809ACC0
.4byte s6E_yes_no
.4byte s6F_multichoice
.4byte sub_809AD3C
.4byte sub_809AD90
.4byte sub_809AD8C
.4byte s73_nop_skip_word
.4byte sub_809ADEC
.4byte sub_809ADF8
.4byte s76_close_picture_box
.4byte sub_809AE48
.4byte sub_809AE6C
.4byte s79_give_pokemon
.4byte s7A_create_egg
.4byte s7B_change_pokedata_AP
.4byte sub_809B3DC
.4byte s7D_load_pokename
.4byte s7E_load_first_pokenames
.4byte s7F_load_pokename_team
.4byte s80_load_item_name
.4byte sub_809B114
.4byte s82_load_item_name
.4byte s83_load_textvar_var
.4byte s84_load_textvar_std_expression
.4byte s85_load_textvar_pointer
.4byte s86_pokemart
.4byte s87_pokemartdecor
.4byte s88_pokemartbp
.4byte s89_open_casino_game1
.4byte berry_script_cmd
.4byte sub_809B784
.4byte sub_809B794
.4byte sub_809B7A4
.4byte sub_809B7B4
.4byte s8F_get_random_val
.4byte s90_AddMoney
.4byte s91_SubtractMoney
.4byte s92_check_money
.4byte s93_display_money
.4byte s94_hide_money
.4byte s95_update_money
.4byte sub_809B758
.4byte s97_screen_special_effect
.4byte s98_refade_with_timer
.4byte s99_unknown
.4byte s9A_unknown
.4byte s9B_unknown
.4byte s9C_execute_HM
.4byte s9D_set_HM_animation_data
.4byte s9E_checkarray_HM_animation
.4byte s9F_changeposition_fly
.4byte sA0_check_gender
.4byte sA1_play_cry
.4byte sA2_setmaptile
.4byte sA3_set_standard_weather_data
.4byte sA4_set_weather_data
.4byte sub_8099E7C
.4byte sA6_activate_per_step_callback_eg_ash
.4byte sA7_set_new_map_footer
.4byte sA8_unknown
.4byte sA9_unknown
.4byte sAA_create_new_sprite
.4byte sAB_unknown
.4byte sAC_open_door
.4byte sub_809B9C8
.4byte sub_809BA24
.4byte sub_809BA38
.4byte sub_809BA7C
.4byte sub_809BAC0
.4byte sub_809BAFC
.4byte sB3_get_coin_amount
.4byte sub_809BB20
.4byte sub_809BB58
.4byte sB6_load_battle
.4byte sub_809B6A8
.4byte sB8_set_virtual_address
.4byte sB9_virtual_jump
.4byte sBA_virtual_call
.4byte sBB_virtual_if_jump
.4byte sBC_virtual_if_call
.4byte sBD_virtual_message
.4byte sBE_virtual_load_text
.4byte sBF_virtual_load_textbuffer
.4byte sub_809B578
.4byte sC1_hide_coins
.4byte sC2_update_coins
.4byte sC3_unknown
.4byte sC4_unknown
.4byte sub_809B8DC
.4byte sC6_load_textvar_box_label
.4byte s01_nop
.4byte s01_nop
.4byte s01_nop
.4byte s01_nop
.4byte s01_nop
.4byte s01_nop
.4byte sCD_set_obedient_bit
.4byte sCE_check_obedient_bit
.4byte sCF_execute_RAM_script_DMA
.4byte s01_nop
.4byte sD1_warp_v5
.4byte sub_809BD70
.4byte sub_809BB90
.4byte sub_809BBB4
.4byte ScrCmd_MossdeepGymSwitch
.4byte sub_809BBDC
.4byte sub_809A150
.4byte sub_809BBE8
.4byte sub_809BBFC
.4byte sub_809AF94
.4byte sub_809AC3C
.4byte sub_8099D20
.4byte sub_809BDD0
.4byte sub_809BE0C
.4byte sub_809ABF0
.4byte sub_809BE54
.4byte sub_809B214
.4byte sub_809B0C4
.4byte ScrCmd_nop
.4byte ScrCmd_nop1
.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 ScrCmd_special
.4byte ScrCmd_specialvar
.4byte ScrCmd_waitstate
.4byte ScrCmd_delay
.4byte ScrCmd_setflag
.4byte ScrCmd_clearflag
.4byte ScrCmd_checkflag
.4byte ScrCmd_initclock
.4byte ScrCmd_dodailyevents
.4byte ScrCmd_gettime
.4byte ScrCmd_playse
.4byte ScrCmd_waitse
.4byte ScrCmd_playfanfare
.4byte ScrCmd_waitfanfare
.4byte ScrCmd_playbgm
.4byte ScrCmd_savebgm
.4byte ScrCmd_fadedefaultbgm
.4byte ScrCmd_fadenewbgm
.4byte ScrCmd_fadeoutbgm
.4byte ScrCmd_fadeinbgm
.4byte ScrCmd_warp
.4byte ScrCmd_warpsilent
.4byte ScrCmd_warpdoor
.4byte ScrCmd_warphole
.4byte ScrCmd_warpteleport
.4byte ScrCmd_setwarp
.4byte ScrCmd_setdynamicwarp
.4byte ScrCmd_setdivewarp
.4byte ScrCmd_setholewarp
.4byte ScrCmd_getplayerxy
.4byte ScrCmd_countpokemon
.4byte ScrCmd_additem
.4byte ScrCmd_removeitem
.4byte ScrCmd_checkitemspace
.4byte ScrCmd_checkitem
.4byte ScrCmd_checkitemtype
.4byte ScrCmd_addpcitem
.4byte ScrCmd_checkpcitem
.4byte ScrCmd_adddecor
.4byte ScrCmd_removedecor
.4byte ScrCmd_hasdecor
.4byte ScrCmd_checkdecor
.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
.4byte ScrCmd_hideobject
.4byte ScrCmd_faceplayer
.4byte ScrCmd_turnobject
.4byte ScrCmd_trainerbattle
.4byte ScrCmd_battlebegin
.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 ScrCmd_waitmessage
.4byte ScrCmd_message
.4byte ScrCmd_closemessage
.4byte ScrCmd_lockall
.4byte ScrCmd_lock
.4byte ScrCmd_releaseall
.4byte ScrCmd_release
.4byte ScrCmd_waitbutton
.4byte ScrCmd_yesnobox
.4byte ScrCmd_multichoice
.4byte ScrCmd_multichoicedefault
.4byte ScrCmd_multichoicegrid
.4byte ScrCmd_cmd72
.4byte ScrCmd_cmd73
.4byte ScrCmd_cmd74
.4byte ScrCmd_drawpokepic
.4byte ScrCmd_erasepokepic
.4byte ScrCmd_drawcontestwinner
.4byte ScrCmd_braillemessage
.4byte ScrCmd_givepoke
.4byte ScrCmd_giveegg
.4byte ScrCmd_setpokemove
.4byte ScrCmd_checkpokemove
.4byte ScrCmd_getspeciesname
.4byte ScrCmd_getfirstpartypokename
.4byte ScrCmd_getpartypokename
.4byte ScrCmd_getitemname
.4byte ScrCmd_getdecorname
.4byte ScrCmd_getmovename
.4byte ScrCmd_getnumberstring
.4byte ScrCmd_getstdstring
.4byte ScrCmd_getstring
.4byte ScrCmd_pokemart
.4byte ScrCmd_pokemartdecor
.4byte ScrCmd_pokemartbp
.4byte ScrCmd_playslotmachine
.4byte ScrCmd_plantberrytree
.4byte ScrCmd_choosecontestpkmn
.4byte ScrCmd_startcontest
.4byte ScrCmd_showcontestresults
.4byte ScrCmd_contestlinktransfer
.4byte ScrCmd_random
.4byte ScrCmd_givemoney
.4byte ScrCmd_takemoney
.4byte ScrCmd_checkmoney
.4byte ScrCmd_showmoneybox
.4byte ScrCmd_hidemoneybox
.4byte ScrCmd_updatemoneybox
.4byte ScrCmd_getpricereduction
.4byte ScrCmd_fadescreen
.4byte ScrCmd_fadescreendelay
.4byte ScrCmd_setdarklevel
.4byte ScrCmd_animdarklevel
.4byte ScrCmd_messageautoscroll
.4byte ScrCmd_dofieldeffect
.4byte ScrCmd_setfieldeffect
.4byte ScrCmd_waitfieldeffect
.4byte ScrCmd_sethealplace
.4byte ScrCmd_checkplayergender
.4byte ScrCmd_playpokecry
.4byte ScrCmd_setmaptile
.4byte ScrCmd_resetweather
.4byte ScrCmd_setweather
.4byte ScrCmd_doweather
.4byte ScrCmd_tileeffect
.4byte ScrCmd_setmaplayoutindex
.4byte ScrCmd_setobjectpriority
.4byte ScrCmd_resetobjectpriority
.4byte ScrCmd_createvobject
.4byte ScrCmd_turnvobject
.4byte ScrCmd_opendoor
.4byte ScrCmd_closedoor
.4byte ScrCmd_waitdooranim
.4byte ScrCmd_setdooropen
.4byte ScrCmd_setdoorclosed
.4byte ScrCmd_cmdB1
.4byte ScrCmd_cmdB2
.4byte ScrCmd_checkcoins
.4byte ScrCmd_givecoins
.4byte ScrCmd_takecoins
.4byte ScrCmd_setwildbattle
.4byte ScrCmd_dowildbattle
.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_vgetstring
.4byte ScrCmd_showcoinsbox
.4byte ScrCmd_hidecoinsbox
.4byte ScrCmd_updatecoinsbox
.4byte ScrCmd_incrementgamestat
.4byte ScrCmd_setescapewarp
.4byte ScrCmd_waitpokecry
.4byte ScrCmd_cmdC6
.4byte ScrCmd_nop1
.4byte ScrCmd_nop1
.4byte ScrCmd_nop1
.4byte ScrCmd_nop1
.4byte ScrCmd_nop1
.4byte ScrCmd_nop1
.4byte ScrCmd_cmdCD
.4byte ScrCmd_cmdCE
.4byte ScrCmd_cmdCF
.4byte ScrCmd_nop1
.4byte ScrCmd_cmdD1
.4byte ScrCmd_cmdD2
.4byte ScrCmd_cmdD3
.4byte ScrCmd_cmdD4
.4byte ScrCmd_cmdD5
.4byte ScrCmd_cmdD6
.4byte ScrCmd_cmdD7
.4byte ScrCmd_cmdD8
.4byte ScrCmd_cmdD9
.4byte ScrCmd_cmdDA
.4byte ScrCmd_cmdDB
.4byte ScrCmd_cmdDC
.4byte ScrCmd_cmdDD
.4byte ScrCmd_cmdDE
.4byte ScrCmd_cmdDF
.4byte ScrCmd_cmdE0
.4byte ScrCmd_cmdE1
.4byte ScrCmd_cmdE2