diff --git a/Poke_Transporter_GB_mb.sym b/Poke_Transporter_GB_mb.sym index a0b9bca..5bf4c2e 100644 --- a/Poke_Transporter_GB_mb.sym +++ b/Poke_Transporter_GB_mb.sym @@ -1,11 +1,14 @@ 00000001 B _ZN17__eh_globals_init7_S_initE 00000001 B asm_payload_location +00000001 B celebi_caught 00000001 B connection_state 00000001 B current_bank 00000001 B in_data 00000001 B is_macronix 00000001 B mem_id 00000001 D mem_name +00000001 B mew_caught +00000001 B missingno_caught 00000001 B out_data 00000001 D rand_enabled 00000001 B text_exit @@ -16,24 +19,29 @@ 00000002 T __sync_synchronize_none 00000002 T _Unwind_Complete 00000002 t _Unwind_DebugHook -00000002 T _ZN13Pokemon_Party13continue_linkEb 00000002 T _ZN3DexC1Ev 00000002 T _ZN3DexC2Ev +00000002 T _ZN6ButtonC1Ev +00000002 T _ZN6ButtonC2Ev 00000002 T _ZN8Box_MenuC1Ev 00000002 T _ZN8Box_MenuC2Ev 00000002 T _ZNSt13bad_exceptionD1Ev 00000002 T _ZNSt13bad_exceptionD2Ev +00000002 T _ZNSt3_V214error_categoryD1Ev +00000002 T _ZNSt3_V214error_categoryD2Ev 00000002 T _ZNSt9exceptionD1Ev 00000002 T _ZNSt9exceptionD2Ev 00000002 T _ZNSt9type_infoD1Ev 00000002 T _ZNSt9type_infoD2Ev 00000002 T dummy_drawg 00000002 T dummy_erase +00000004 b __hndl_lock 00000004 B __malloc_max_sbrked_mem 00000004 B __malloc_max_total_mem 00000004 D __malloc_sbrk_base 00000004 B __malloc_top_pad 00000004 D __malloc_trim_threshold +00000004 B __stdio_exit_handler 00000004 D _impure_ptr 00000004 V _ZGVNSt10moneypunctIcLb0EE2idE 00000004 V _ZGVNSt10moneypunctIcLb1EE2idE @@ -84,14 +92,19 @@ 00000004 T _ZN10script_obj15get_false_indexEv 00000004 T _ZN11Button_Menu21set_bottom_row_offsetEi 00000004 b _ZN12_GLOBAL__N_113__new_handlerE +00000004 d _ZN12_GLOBAL__N_120io_category_instanceE 00000004 b _ZN12_GLOBAL__N_1L11static_condE 00000004 b _ZN12_GLOBAL__N_1L12static_mutexE +00000004 T _ZN13Pokemon_Party12get_num_pkmnEv 00000004 T _ZN7Pokemon20get_full_gen_3_arrayEv -00000004 T _ZN8rom_data10verify_romEv 00000004 T _ZNKSt11logic_error4whatEv 00000004 T _ZNKSt13runtime_error4whatEv +00000004 W _ZNKSt5ctypeIcE8do_widenEc +00000004 T _ZNKSt8ios_base7failure4whatEv 00000004 T _ZNKSt9type_info14__is_pointer_pEv 00000004 T _ZNKSt9type_info15__is_function_pEv +00000004 V _ZZ8n2hexstrIiENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_jE6digits +00000004 V _ZZ8n2hexstrIjENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET_jE6digits 00000004 b _ZZN12_GLOBAL__N_115get_static_condEvE4once 00000004 b _ZZN12_GLOBAL__N_116get_static_mutexEvE4once 00000004 T ArcTan @@ -115,6 +128,10 @@ 00000004 B btn_p_r 00000004 B btn_t_l 00000004 B btn_t_r +00000004 B button_blank_left +00000004 B button_blank_left_2 +00000004 B button_blank_right +00000004 B button_blank_right_2 00000004 B button_blue_left 00000004 B button_blue_right 00000004 B button_cancel_left @@ -141,6 +158,7 @@ 00000004 T CpuFastSet 00000004 T CpuSet 00000004 B data_counter +00000004 d defaultDevice 00000004 B delay 00000004 B delay_counter 00000004 B dex_shift @@ -165,6 +183,10 @@ 00000004 T HuffUnComp 00000004 b initial_env 00000004 T IntrWait +00000004 B johto_dex_num +00000004 B johto_offset +00000004 B kanto_dex_num +00000004 B kanto_offset 00000004 B last_error 00000004 B leading_zeros 00000004 B line_char_index @@ -172,19 +194,27 @@ 00000004 T LZ77UnCompVram 00000004 T LZ77UnCompWram 00000004 T MidiKey2Freq +00000004 D mosi_delay 00000004 T MultiBoot 00000004 B newest_save_offset +00000004 t null_write 00000004 B num_sprites 00000004 T ObjAffineSet 00000004 B prof 00000004 B ptgb_logo_l 00000004 B ptgb_logo_r +00000004 B ptr_block_ptr_high +00000004 B ptr_block_ptr_low 00000004 B ptr_box_return 00000004 B ptr_call_check_flag +00000004 B ptr_call_return_1 00000004 B ptr_call_return_2 +00000004 B ptr_callASM 00000004 B ptr_dex_seen_caught 00000004 B ptr_index 00000004 B ptr_pkmn_offset +00000004 B ptr_script_ptr_high +00000004 B ptr_script_ptr_low 00000004 T RegisterRamReset 00000004 T RLUnCompVram 00000004 T RLUnCompWram @@ -201,15 +231,18 @@ 00000004 T Sqrt 00000004 B state 00000004 T Stop -00000004 B testroid 00000004 B trade_pokemon 00000004 B u32_rand 00000004 D var_box_return 00000004 D var_call_check_flag +00000004 D var_call_return_1 00000004 D var_call_return_2 +00000004 D var_callASM 00000004 D var_dex_seen_caught 00000004 D var_index 00000004 D var_pkmn_offset +00000004 D var_script_ptr_high +00000004 D var_script_ptr_low 00000004 T VBlankIntrWait 00000004 B x 00000004 B y @@ -223,6 +256,7 @@ 00000006 T _ZN7Pokemon19get_letter_from_pidEj 00000006 T _ZN8rom_dataC1Ev 00000006 T _ZN8rom_dataC2Ev +00000006 T _ZNKSt3_V214error_category23default_error_conditionEi 00000006 T DivAbs 00000006 T DivArmAbs 00000006 T DivArmMod @@ -255,7 +289,6 @@ 00000008 T _ZGTtNKSt9exception4whatEv 00000008 T _ZN10sprite_var9set_startEv 00000008 T _ZN11Button_Menu15get_pos_from_xyEii -00000008 T _ZN11textbox_var9set_startEv 00000008 b _ZN12_GLOBAL__N_19fake_condE 00000008 T _ZN12movement_var9set_startEv 00000008 T _ZN13Pokemon_Party14get_last_errorEv @@ -264,21 +297,29 @@ 00000008 T _ZN7Pokemon14get_gen_3_dataEi 00000008 T _ZN7Pokemon20get_unencrypted_dataEi 00000008 T _ZN9music_var9set_startEv +00000008 t _ZNK12_GLOBAL__N_117io_error_category4nameEv 00000008 W _ZNK9__gnu_cxx24__concurrence_lock_error4whatEv 00000008 W _ZNK9__gnu_cxx24__concurrence_wait_error4whatEv 00000008 W _ZNK9__gnu_cxx26__concurrence_unlock_error4whatEv 00000008 W _ZNK9__gnu_cxx29__concurrence_broadcast_error4whatEv 00000008 T _ZNKSt13bad_exception4whatEv +00000008 T _ZNKSt8bad_cast4whatEv 00000008 T _ZNKSt9bad_alloc4whatEv 00000008 T _ZNKSt9exception4whatEv +00000008 T _ZSt17iostream_categoryv 00000008 R _ZTIN10__cxxabiv115__forced_unwindE 00000008 R _ZTIN10__cxxabiv119__foreign_exceptionE +00000008 R _ZTINSt3_V214error_categoryE 00000008 R _ZTISt9exception 00000008 R _ZTISt9type_info +00000008 T UGBA_MemIO 0000000a T _getpid_r 0000000a T _kill_r 0000000a T _Z12delay_cyclesm +0000000a T _ZN10script_objC1Ev +0000000a T _ZN10script_objC2Ev 0000000a T _ZN11textbox_var17set_virtual_startEv +0000000a T _ZN11textbox_var9set_startEv 0000000a T _ZN7xse_var9set_startEv 0000000a T _ZSt10unexpectedv 0000000a T _ZSt24__throw_out_of_range_fmtPKcz @@ -288,18 +329,27 @@ 0000000c b __env_recursive_mutex 0000000c T __errno 0000000c b __malloc_recursive_mutex +0000000c b __sfp_recursive_mutex +0000000c D __sglue +0000000c d __stderr_handle +0000000c d __stdin_handle +0000000c d __stdout_handle 0000000c t _Unwind_decode_typeinfo_ptr.constprop.0 0000000c T _Z12set_def_langi 0000000c T _Z13rand_get_seedv 0000000c T _Z13rand_set_seedj 0000000c T _Z13set_text_exitv +0000000c T _Z14interrupt_initv 0000000c T _Z15get_frame_countv 0000000c T _Z16get_def_lang_numv +0000000c T _Z16interrupt_enable15interrupt_index 0000000c T _Z17get_earliest_movei 0000000c T _Z17get_num_abilitiesi +0000000c T _Z17interrupt_disable15interrupt_index 0000000c T _Z17set_tutorial_flagb 0000000c T _Z18enable_auto_randomv 0000000c T _Z19disable_auto_randomv +0000000c T _Z21interrupt_set_handler15interrupt_indexPFvvE 0000000c T _ZdlPv 0000000c T _ZdlPvj 0000000c T _ZN10__cxxabiv112__unexpectedEPFvvE @@ -307,27 +357,40 @@ 0000000c T _ZN11Button_Menu14set_xy_min_maxEiiii 0000000c b _ZN12_GLOBAL__N_110eh_globalsE 0000000c T _ZN13Pokemon_Party16get_has_new_pkmnEv +0000000c T _ZN13Pokemon_Party20get_contains_invalidEv 0000000c T _ZN13Pokemon_Party21get_contains_mythicalEv 0000000c T _ZN13Pokemon_Party24set_mythic_stabilizationEb 0000000c T _ZN13Pokemon_Party8get_langEv 0000000c T _ZN13Pokemon_Party8set_langEi 0000000c T _ZN19mystery_gift_script10rev_endianEt 0000000c T _ZN7asm_var9set_startEb +0000000c T _ZN9__gnu_cxx12__atomic_addEPVii 0000000c T _ZN9__gnu_cxx20recursive_init_errorC1Ev 0000000c T _ZN9__gnu_cxx20recursive_init_errorC2Ev +0000000c T _ZNKSt8ios_base7failureB5cxx114whatEv +0000000c W _ZNSolsEi 0000000c W _ZNSs4_Rep10_M_destroyERKSaIcE 0000000c R _ZTIN10__cxxabiv117__class_type_infoE 0000000c R _ZTIN10__cxxabiv120__si_class_type_infoE +0000000c R _ZTIN10__cxxabiv121__vmi_class_type_infoE +0000000c r _ZTIN12_GLOBAL__N_117io_error_categoryE 0000000c R _ZTIN9__gnu_cxx20recursive_init_errorE 0000000c V _ZTIN9__gnu_cxx24__concurrence_lock_errorE 0000000c V _ZTIN9__gnu_cxx24__concurrence_wait_errorE 0000000c V _ZTIN9__gnu_cxx26__concurrence_unlock_errorE 0000000c V _ZTIN9__gnu_cxx29__concurrence_broadcast_errorE +0000000c R _ZTINSt8ios_base7failureB5cxx11E +0000000c R _ZTINSt8ios_base7failureE 0000000c R _ZTISt11logic_error 0000000c R _ZTISt12length_error 0000000c R _ZTISt12out_of_range +0000000c R _ZTISt12system_error +0000000c V _ZTISt13__ios_failure 0000000c R _ZTISt13bad_exception +0000000c R _ZTISt13runtime_error +0000000c R _ZTISt8bad_cast 0000000c R _ZTISt9bad_alloc +0000000c R _ZTSSt8bad_cast 0000000c B box_viewer 0000000c T key_repeat 0000000c t unwind_UCB_from_context @@ -338,18 +401,21 @@ 0000000e W __aeabi_unwind_cpp_pr1 0000000e W __aeabi_unwind_cpp_pr2 0000000e T _Unwind_GetRegionStart -0000000e T _ZN10script_objC1Ev -0000000e T _ZN10script_objC2Ev 0000000e T _ZN19mystery_gift_script22get_section30_value_atEi 0000000e T _ZN7asm_var9set_startEv 0000000e T abort 0000000f d _ZL16LINK_SPI_VERSION +0000000f d _ZL16LINK_SPI_VERSION 00000010 t ___Z12erase_sectorj_veneer 00000010 t ___Z16copy_ram_to_savePhjj_veneer 00000010 t ___Z16copy_save_to_ramjPhj_veneer 00000010 t ___Z9init_bankv_veneer +00000010 T __sclose 00000010 T _Z13hide_text_boxv +00000010 T _Z16exchange_partieshPh 00000010 T _Z17get_tutorial_flagv +00000010 T _ZN10script_objC1Eii +00000010 T _ZN10script_objC2Eii 00000010 T _ZN10script_var14fill_refrencesEPh 00000010 T _ZN10script_var9set_startEv 00000010 b _ZN12_GLOBAL__N_110fake_mutexE @@ -368,6 +434,7 @@ 00000010 R _ZTV9music_var 00000010 b _ZZN12_GLOBAL__N_116get_atomic_mutexEvE12atomic_mutex 00000010 T CpuFastFill +00000010 T IRQ_SetHandler 00000010 T key_repeat_mask 00000010 T sbmp16_get_pixel 00000010 T tte_cmd_skip @@ -375,21 +442,30 @@ 00000010 T VBlankIntrDelay 00000011 R _ZTSSt12length_error 00000011 R _ZTSSt12out_of_range +00000011 R _ZTSSt12system_error 00000012 T _ZN11Button_Menu14get_y_from_posEi 00000012 T _ZN11textbox_var8set_textESt17basic_string_viewIDsSt11char_traitsIDsEE +00000012 T _ZN13Pokemon_Party12get_game_genEv 00000012 T _ZN19mystery_gift_script17init_npc_locationEhhh 00000012 T _ZN7Pokemon14get_dex_numberEv 00000012 T _ZNK10__cxxabiv117__class_type_info20__do_find_public_srcEiPKvPKS0_S2_ 00000012 T _ZNSt13bad_exceptionD0Ev +00000012 T _ZSt18uncaught_exceptionv +00000012 V _ZTSSt13__ios_failure 00000012 R _ZTSSt13bad_exception +00000012 R _ZTSSt13runtime_error 00000012 T DivSafe 00000014 T __env_lock 00000014 T __env_unlock 00000014 T __malloc_lock 00000014 T __malloc_unlock +00000014 T __sfp_lock_acquire +00000014 T __sfp_lock_release 00000014 T _exit +00000014 t _GLOBAL__sub_D_curr_line 00000014 T _Z11get_max_expi 00000014 T _Z13show_text_boxv +00000014 T _Z14exchange_boxeshPh 00000014 T _ZN10__cxxabiv111__terminateEPFvvE 00000014 T _ZN10script_var10place_wordEv 00000014 T _ZN11Button_Menu14get_x_from_posEi @@ -402,10 +478,16 @@ 00000014 V _ZTVN9__gnu_cxx24__concurrence_wait_errorE 00000014 V _ZTVN9__gnu_cxx26__concurrence_unlock_errorE 00000014 V _ZTVN9__gnu_cxx29__concurrence_broadcast_errorE +00000014 R _ZTVNSt8ios_base7failureB5cxx11E +00000014 R _ZTVNSt8ios_base7failureE 00000014 R _ZTVSt11logic_error 00000014 R _ZTVSt12length_error 00000014 R _ZTVSt12out_of_range +00000014 R _ZTVSt12system_error +00000014 V _ZTVSt13__ios_failure 00000014 R _ZTVSt13bad_exception +00000014 R _ZTVSt13runtime_error +00000014 R _ZTVSt8bad_cast 00000014 R _ZTVSt9bad_alloc 00000014 T free 00000014 T key_repeat_limits @@ -416,10 +498,15 @@ 00000014 r srf.9128 00000016 T _Unwind_GetLanguageSpecificData 00000016 T _Z14write_int_savejm +00000016 T _ZN10script_objC1Eiii +00000016 T _ZN10script_objC2Eiii 00000016 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_disposeEv +00000016 R _ZTSNSt8ios_base7failureE 00000016 t selfrel_offset31 00000018 T __gnu_Unwind_ForcedUnwind +00000018 T __libc_lock_acquire 00000018 T __libc_lock_acquire_recursive +00000018 T __libc_lock_release 00000018 T __libc_lock_release_recursive 00000018 t _GLOBAL__sub_I__ZN10__cxxabiv111__terminateEPFvvE 00000018 t _GLOBAL__sub_I__ZSt7nothrow @@ -430,6 +517,10 @@ 00000018 T _ZN10__cxxabiv117__class_type_infoD2Ev 00000018 T _ZN10__cxxabiv120__si_class_type_infoD1Ev 00000018 T _ZN10__cxxabiv120__si_class_type_infoD2Ev +00000018 T _ZN10__cxxabiv121__vmi_class_type_infoD1Ev +00000018 T _ZN10__cxxabiv121__vmi_class_type_infoD2Ev +00000018 t _ZN12_GLOBAL__N_117io_error_categoryD1Ev +00000018 t _ZN12_GLOBAL__N_117io_error_categoryD2Ev 00000018 t _ZN12_GLOBAL__N_1L16init_static_condEv 00000018 T _ZN19mystery_gift_script10faceplayerEv 00000018 T _ZN19mystery_gift_script10killscriptEv @@ -451,15 +542,29 @@ 00000018 W _ZN9__gnu_cxx26__concurrence_unlock_errorD2Ev 00000018 W _ZN9__gnu_cxx29__concurrence_broadcast_errorD1Ev 00000018 W _ZN9__gnu_cxx29__concurrence_broadcast_errorD2Ev +00000018 W _ZNKSt5ctypeIcE8do_widenEPKcS2_Pc 00000018 T _ZNSt12length_errorC1EPKc 00000018 T _ZNSt12length_errorC2EPKc 00000018 T _ZNSt12out_of_rangeC1EPKc 00000018 T _ZNSt12out_of_rangeC2EPKc +00000018 T _ZNSt12system_errorD1Ev +00000018 T _ZNSt12system_errorD2Ev +00000018 T _ZNSt19__iosfail_type_infoD1Ev +00000018 T _ZNSt19__iosfail_type_infoD2Ev +00000018 T _ZNSt8bad_castD1Ev +00000018 T _ZNSt8bad_castD2Ev +00000018 T _ZNSt8ios_base7failureB5cxx11D1Ev +00000018 T _ZNSt8ios_base7failureB5cxx11D2Ev 00000018 T _ZNSt9bad_allocD1Ev 00000018 T _ZNSt9bad_allocD2Ev +00000018 W _ZNSt9basic_iosIcSt11char_traitsIcEE11_M_setstateESt12_Ios_Iostate +00000018 R _ZTISt19__iosfail_type_info +00000018 R _ZTSSt19__iosfail_type_info +00000018 B curr_line 00000018 R EXP_TYPES 00000018 T tte_set_context 00000018 T tte_set_margins +00000019 R _ZTSNSt3_V214error_categoryE 0000001a t _Unwind_GetGR 0000001a t _Unwind_GetGR.constprop.0 0000001a t _Unwind_SetGR @@ -478,9 +583,14 @@ 0000001c T _ZN13Pokemon_Party15get_simple_pkmnEi 0000001c T _ZN6ButtonC1EP8OBJ_ATTR 0000001c T _ZN6ButtonC2EP8OBJ_ATTR +0000001c T _ZNKSt3_V214error_category10equivalentERKSt10error_codei +0000001c T freopen +0000001c B johto_count +0000001c B kanto_count 0000001c T restore_core_regs 0000001c T tte_erase_rect 0000001c T tte_set_color_attrs +0000001d R _ZTSNSt8ios_base7failureB5cxx11E 0000001e T _Z15read_short_savej 0000001e T _ZN6ButtonC1EP8OBJ_ATTRS1_i 0000001e T _ZN6ButtonC2EP8OBJ_ATTRS1_i @@ -490,16 +600,15 @@ 00000020 T __cxa_call_terminate 00000020 T __getreent 00000020 T __gnu_Unwind_Resume_or_Rethrow -00000020 t _GLOBAL__sub_D_curr_line -00000020 t _GLOBAL__sub_I_dex_array 00000020 T _Z10set_caughti 00000020 T _Z12get_rand_u16v 00000020 T _Z12get_rand_u32v -00000020 T _Z12pokedex_showv 00000020 T _Z12show_textboxv 00000020 T _Z15rand_next_framev 00000020 T _ZN10__cxxabiv117__class_type_infoD0Ev 00000020 T _ZN10__cxxabiv120__si_class_type_infoD0Ev +00000020 T _ZN10__cxxabiv121__vmi_class_type_infoD0Ev +00000020 t _ZN12_GLOBAL__N_117io_error_categoryD0Ev 00000020 t _ZN12_GLOBAL__N_1L4initEv 00000020 T _ZN3Dex4showEv 00000020 T _ZN8rom_data16is_ruby_sapphireEv @@ -511,11 +620,17 @@ 00000020 W _ZN9__gnu_cxx30__throw_concurrence_lock_errorEv 00000020 W _ZN9__gnu_cxx32__throw_concurrence_unlock_errorEv 00000020 W _ZN9__gnu_cxx35__throw_concurrence_broadcast_errorEv +00000020 T _ZNSt12system_errorD0Ev +00000020 T _ZNSt19__iosfail_type_infoD0Ev +00000020 T _ZNSt8bad_castD0Ev +00000020 T _ZNSt8ios_base7failureB5cxx11D0Ev 00000020 T _ZNSt9bad_allocD0Ev +00000020 T _ZSt16__throw_bad_castv 00000020 T _ZSt17__throw_bad_allocv 00000020 R _ZTSN10__cxxabiv115__forced_unwindE 00000020 R frame_one_pal 00000020 R frame_two_pal +00000020 t stdio_exit_handler 00000020 T tte_set_color 00000022 T _Z14reverse_endianPhj 00000022 R _ZTSN10__cxxabiv117__class_type_infoE @@ -525,14 +640,19 @@ 00000024 T __floatunsidf 00000024 t _GLOBAL__sub_I_curr_line 00000024 T _Z12hide_textboxv +00000024 T _ZN10script_objC1ESt17basic_string_viewIcSt11char_traitsIcEEi +00000024 T _ZN10script_objC2ESt17basic_string_viewIcSt11char_traitsIcEEi 00000024 T _ZN7Pokemon16rand_reverse_modEhh +00000024 T _ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE +00000024 T _ZNSt13runtime_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE 00000024 R _ZTSN10__cxxabiv119__foreign_exceptionE -00000024 B curr_line 00000024 T key_wait_till_hit 00000024 T strtoul 00000024 T tte_erase_screen 00000025 R _ZTSN10__cxxabiv120__si_class_type_infoE +00000025 r _ZTSN12_GLOBAL__N_117io_error_categoryE 00000026 t _ZL15eh_globals_dtorPv +00000026 R _ZTSN10__cxxabiv121__vmi_class_type_infoE 00000026 T malloc 00000026 T srf_pal_copy 00000027 V _ZTSN9__gnu_cxx24__concurrence_lock_errorE @@ -550,6 +670,10 @@ 00000028 T _ZN19mystery_gift_script7callstdEh 00000028 T _ZN6Button4showEv 00000028 T _ZN7asm_var13add_referenceEv +00000028 W _ZNSt13__ios_failureD1Ev +00000028 W _ZNSt13__ios_failureD2Ev +00000028 W _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate +00000028 r _ZTVN12_GLOBAL__N_117io_error_categoryE 00000028 T obj_hide_multi 00000028 T obj_unhide_multi 00000028 T tte_erase_line @@ -565,31 +689,33 @@ 0000002a T _Unwind_RaiseException 0000002a T _Unwind_Resume 0000002a T _Unwind_Resume_or_Rethrow +0000002a T _Z21exchange_remove_arrayhP18Simplified_Pokemonb 0000002a T _ZN7asm_var13add_referenceEi 0000002a T _ZNK10__cxxabiv120__si_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE -0000002c T _Z12pokedex_hidev -0000002c T _Z16background_framev +0000002a T _ZNKSt19__iosfail_type_info11__do_upcastEPKN10__cxxabiv117__class_type_infoEPPv +0000002c T _Z16background_framei 0000002c T _Z17set_textbox_smallv 0000002c T _ZN6Button4hideEv 0000002c T _ZN8rom_data8is_hoennEv +0000002c T _ZSt24__is_ios_failure_handlerPKN10__cxxabiv117__class_type_infoE 0000002c V _ZTSN9__gnu_cxx29__concurrence_broadcast_errorE 0000002c R _ZTVN10__cxxabiv117__class_type_infoE 0000002c R _ZTVN10__cxxabiv120__si_class_type_infoE +0000002c R _ZTVN10__cxxabiv121__vmi_class_type_infoE +0000002c R _ZTVSt19__iosfail_type_info 0000002c T irq_set_master 0000002c T sbmp16_floodfill 0000002c T se_erase -0000002e T _Z16text_next_obj_id10script_obj 0000002e T sbmp16_hline 00000030 T __cxa_allocate_exception 00000030 t _GLOBAL__sub_D_delay_counter 00000030 t _GLOBAL__sub_D_linkSPI 00000030 t _GLOBAL__sub_I__ZN17__eh_globals_init7_S_initE 00000030 T _Z21load_custom_save_datav -00000030 T _ZN10script_objC1ESt17basic_string_viewIcSt11char_traitsIcEEi -00000030 T _ZN10script_objC2ESt17basic_string_viewIcSt11char_traitsIcEEi 00000030 T _ZN3Dex4hideEv 00000030 T _ZN3DexC1EP8OBJ_ATTRS1_S1_ 00000030 T _ZN3DexC2EP8OBJ_ATTRS1_S1_ +00000030 W _ZNSt13__ios_failureD0Ev 00000030 T _ZSt19__throw_logic_errorPKc 00000030 T _ZSt20__throw_length_errorPKc 00000030 T _ZSt20__throw_out_of_rangePKc @@ -598,23 +724,28 @@ 00000032 T _ZN7Pokemon15get_simple_pkmnEv 00000032 t next_unwind_byte 00000034 T __cxa_throw -00000034 T _ZN10script_objC1Eii -00000034 T _ZN10script_objC2Eii +00000034 T __get_handle +00000034 T __sread +00000034 t _GLOBAL__sub_I_dex_array 00000034 T _ZN19mystery_gift_script13virtualmsgboxEj +00000034 T _ZNKSt3_V214error_category10equivalentEiRKSt15error_condition 00000036 T _ZN7Pokemon12copy_from_toEPhS0_ib 00000036 T memset16 00000038 r __irq_senders +00000038 T _Z18get_dex_completionib 00000038 t _ZN10__cxxabiv1L24__is_gxx_exception_classEPc -00000038 T _ZN10script_objC1Eiii -00000038 T _ZN10script_objC2Eiii 00000038 T _ZN11Button_MenuC1Eiiiib 00000038 T _ZN11Button_MenuC2Eiiiib 00000038 T _ZN6Button13set_highlightEb +00000038 B IRQ_VectorTable 00000038 T memcpy32 00000038 T sbmp16_vline 00000038 T strtol 00000038 T tte_cmd_next +0000003a T _Z16text_next_obj_id10script_obj 0000003a T _ZN7xse_var13add_referenceEi +0000003c T __sinit +0000003c T __sseek 0000003c t _GLOBAL__sub_I_linkSPI 0000003c T _Z17set_textbox_largev 0000003c T _ZN10script_varC1ERSt6vectorIPS_SaIS1_EEPi @@ -631,16 +762,20 @@ 0000003c T _ZN7xse_var13add_referenceEiPS_ 0000003c T _ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE 0000003c T _ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PPv +0000003e T _ZNKSt3_V214error_category10_M_messageB5cxx11Ei 0000003e T memcpy16 0000003e t unwind_phase2 +00000040 T _Z12pokedex_hidev 00000040 T _Z15write_byte_savejh +00000040 W _Z19LINK_SPI_ISR_SERIALv 00000040 T _ZN10script_varC1EjRSt6vectorIPS_SaIS1_EEPi 00000040 T _ZN10script_varC2EjRSt6vectorIPS_SaIS1_EEPi -00000040 T _ZN13Pokemon_Party12load_payloadEv +00000040 T _ZN13Pokemon_Party11load_gb_romEv 00000040 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERjj 00000040 T _ZSt13get_terminatev 00000040 T _ZSt14get_unexpectedv 00000040 T _ZSt15get_new_handlerv +00000040 t cleanup_stdio 00000040 R GENDER_THRESHOLDS 00000040 T se_drawg_w8h16 00000040 T tte_set_colors @@ -652,21 +787,23 @@ 00000044 T _ZN19mystery_gift_script10spritefaceEth 00000044 T _ZN19mystery_gift_script12spritebehaveEth 00000044 T _ZN19mystery_gift_script3swiEh -00000044 T _ZN19mystery_gift_script7add_asmEt 00000044 T irq_disable 00000044 T irq_init 00000046 T _Znwj 00000048 T __aeabi_f2d 00000048 T __extendsfdf2 00000048 B __tte_main_context +00000048 T _Z12pokedex_showv 00000048 T _Z14read_byte_savej 00000048 T _Z24compare_map_and_npc_dataiii -00000048 T _ZN13Pokemon_Party10start_linkEv +00000048 T _ZN13Pokemon_Party13continue_linkEb 00000048 T _ZN19mystery_gift_script13virtualgotoifEhj +00000048 T _ZN19mystery_gift_script7add_asmEt 00000048 T _ZN6Button12set_locationEii 00000048 T _ZN7Pokemon11insert_dataEPhS0_S0_S0_ 00000048 T _ZN7PokemonC1Ev 00000048 T _ZN7PokemonC2Ev +00000048 t _ZNK12_GLOBAL__N_117io_error_category7messageB5cxx11Ei 00000048 B dex_sprites 00000048 B game_select_def 00000048 B game_select_jpn @@ -677,16 +814,22 @@ 00000048 T oam_init 00000048 B yes_no_menu 0000004a T __gnu_Unwind_Resume +0000004a W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEjc 0000004a T memcmp +0000004c T __swrite +0000004c T _fwalk_sglue 0000004c T _Z14can_learn_moveii 0000004c T _Z15load_backgroundv 0000004c T _Z22write_custom_save_datav +0000004c T _ZN13Pokemon_Party10start_linkEv 0000004c r C.60.0 0000004c T memset32 +0000004e W _ZNSo6sentryD1Ev +0000004e W _ZNSo6sentryD2Ev +0000004e t _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag.isra.0 00000050 T __cxa_get_globals 00000050 T __cxa_init_primary_exception 00000050 T _Z14get_gen_3_chartb -00000050 T _ZN10script_obj8get_textB5cxx11Ev 00000050 T _ZN19mystery_gift_script10calc_crc16Ev 00000050 T _ZN19mystery_gift_script11loadpointerEhj 00000050 T _ZN19mystery_gift_script17setvirtualaddressEj @@ -703,12 +846,15 @@ 00000050 T _ZN19mystery_gift_script6subvarEtt 00000050 T _ZN19mystery_gift_script7callASMEj 00000050 T _ZN19mystery_gift_script7compareEtt +00000050 W _ZNSo6sentryC1ERSo +00000050 W _ZNSo6sentryC2ERSo 00000050 T tte_putc 00000052 T __libc_init_array 00000052 T _ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj 00000054 T __aeabi_d2uiz 00000054 T __fixunsdfsi 00000054 W _sbrk_r +00000054 t _Z10write_calliPhRij.part.0 00000054 T _Z11load_spriteP8OBJ_ATTRPKjiRjjiij 00000054 T _Z18first_load_messagev 00000054 T _Z9read_flagt @@ -717,52 +863,66 @@ 00000054 T _ZN19mystery_gift_script4add3Ehhh 00000054 T _ZN19mystery_gift_script4add5Ehh 00000054 T _ZN19mystery_gift_script4ldr1Ehhh -00000054 T _ZN19mystery_gift_script4ldr2Ehhh 00000054 T _ZN19mystery_gift_script4str1Ehhh 00000054 T _ZN3Dex12set_locationEii +00000054 T _ZN8rom_data10verify_romEv 00000054 T key_poll +00000056 T _read_r +00000056 T _write_r 00000056 t _ZL23__gxx_exception_cleanup19_Unwind_Reason_CodeP21_Unwind_Control_Block +00000058 t _GLOBAL__sub_D_last_error 00000058 T _Z23load_textbox_backgroundv 00000058 T _ZN12movement_var15insert_movementEPh +00000058 T _ZN19mystery_gift_script4ldr2Ehhh +00000058 W _ZNSs4_Rep8_M_cloneERKSaIcEj 00000058 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcj 0000005a T __gnu_Unwind_RaiseException 0000005a T _ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_ -0000005c T _Z12pokedex_initv 0000005c T _Z23load_opening_backgroundv -0000005c T _ZN19mystery_gift_script4strhEhhh 0000005c T _ZNSt11logic_errorD1Ev 0000005c T _ZNSt11logic_errorD2Ev 0000005c T _ZNSt12length_errorD1Ev 0000005c T _ZNSt12length_errorD2Ev 0000005c T _ZNSt12out_of_rangeD1Ev 0000005c T _ZNSt12out_of_rangeD2Ev +0000005c T _ZNSt13runtime_errorD1Ev +0000005c T _ZNSt13runtime_errorD2Ev +0000005c T _ZNSt8ios_base7failureD1Ev +0000005c T _ZNSt8ios_base7failureD2Ev +0000005e T _lseek_r 0000005e T _raise_r 0000005e t restore_non_core_regs 00000060 T __aeabi_l2d 00000060 T __floatdidf -00000060 T _ZN19mystery_gift_scriptC1Ev -00000060 T _ZN19mystery_gift_scriptC2Ev +00000060 T _ZN19mystery_gift_script4strhEhhh 00000060 T _ZNSt11logic_errorD0Ev 00000060 T _ZNSt12length_errorD0Ev 00000060 T _ZNSt12out_of_rangeD0Ev +00000060 T _ZNSt13runtime_errorD0Ev 00000060 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEj +00000060 T _ZNSt8ios_base7failureD0Ev 00000060 T strlen 00000062 T __cxa_begin_cleanup +00000062 T _ZNKSt5ctypeIcE13_M_widen_initEv 00000064 t _GLOBAL__sub_I__ZNSt12ctype_bynameIcEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj 00000064 t _GLOBAL__sub_I__ZNSt12ctype_bynameIwEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEj 00000064 T _Z20initalization_scriptv 00000064 T _ZN19mystery_gift_script13applymovementEtj -00000064 T _ZN19mystery_gift_script4mov3Ehh -00000064 T _ZN8rom_data8load_romEv 00000064 W _ZNSs4_Rep9_S_createEjjRKSaIcE +00000064 T _ZSt19__throw_ios_failurePKc +00000068 T __release_handle 00000068 T _Z14get_rand_rangejj 00000068 T _ZN19mystery_gift_script18changePaletteMacroEhh +00000068 T _ZN19mystery_gift_script4mov3Ehh 00000068 T _ZN19mystery_gift_script8add_wordEj +00000068 T IRQ_Init 0000006a T sbmp16_rect 0000006c t _ZL29write_direct_single_byte_savejh 0000006c T se_drawg 0000006c T se_drawg_s 0000006c T strncmp +0000006e T _fflush_r +0000006e T _ZSt21__destroy_ios_failurePv 00000070 T __cxa_rethrow 00000070 T _ZN7xse_var14fill_refrencesEPh 00000072 T __gnu_end_cleanup @@ -770,39 +930,51 @@ 00000074 T __aeabi_ul2d 00000074 T __floatundidf 00000074 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_ +00000074 T _ZNSt8ios_base7failureC1ERKSs +00000074 T _ZNSt8ios_base7failureC2ERKSs 00000078 T __cxa_begin_catch 00000078 B __isr_table +00000078 T _Z10write_calliPhRij +00000078 T _ZN10script_obj8get_textB5cxx11Ev 00000078 T _ZN19mystery_gift_script11setMetaTileEtttt 00000078 T _ZN19mystery_gift_script8copybyteEjj +00000078 T _ZN19mystery_gift_scriptC1Ev +00000078 T _ZN19mystery_gift_scriptC2Ev 00000078 T _ZN7asm_var14fill_refrencesEPh +00000078 T _ZNSt12__cow_stringC1EPKcj +00000078 T _ZNSt12__cow_stringC2EPKcj 00000078 T irq_add 00000078 B party_sprites +0000007c T __alloc_handle 0000007c T _ZN13Pokemon_Party18get_converted_pkmnEi 0000007c T _ZN9music_var9add_trackESt6vectorIhSaIhEE 0000007c T srf_get_ptr 0000007e T _ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE 00000080 T __cxa_guard_release -00000080 t _GLOBAL__sub_D_last_error 00000080 T _Z16init_text_enginev -00000080 t _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_.isra.0 -00000084 r _ZL11ENG_RUBY_v0 -00000084 r _ZL11ENG_RUBY_v1 -00000084 r _ZL11ENG_RUBY_v2 -00000084 r _ZL14ENG_EMERALD_v0 -00000084 r _ZL14ENG_FIRERED_v0 -00000084 r _ZL14ENG_FIRERED_v1 -00000084 r _ZL15ENG_SAPPHIRE_v0 -00000084 r _ZL15ENG_SAPPHIRE_v1 -00000084 r _ZL15ENG_SAPPHIRE_v2 -00000084 r _ZL16ENG_LEAFGREEN_v0 -00000084 r _ZL16ENG_LEAFGREEN_v1 -00000086 T _ZN8rom_data11fill_valuesEPK8ROM_DATA +00000080 R dotab_stdnull 00000088 T _Z9init_bankv +00000088 r _ZL11ENG_RUBY_v0 +00000088 r _ZL11ENG_RUBY_v1 +00000088 r _ZL11ENG_RUBY_v2 +00000088 r _ZL14ENG_EMERALD_v0 +00000088 r _ZL14ENG_FIRERED_v0 +00000088 r _ZL14ENG_FIRERED_v1 +00000088 r _ZL15ENG_SAPPHIRE_v0 +00000088 r _ZL15ENG_SAPPHIRE_v1 +00000088 r _ZL15ENG_SAPPHIRE_v2 +00000088 r _ZL16ENG_LEAFGREEN_v0 +00000088 r _ZL16ENG_LEAFGREEN_v1 00000088 t _ZN12_GLOBAL__N_14pool8allocateEj.constprop.0 -00000088 B curr_rom +00000088 T IRQ_Disable 0000008c T __gnu_Unwind_Backtrace +0000008c T _ZN8rom_data8load_romEv 0000008c T _ZNSt11logic_errorC1EPKc 0000008c T _ZNSt11logic_errorC2EPKc +0000008c B _ZSt4cout +0000008c B curr_rom +0000008c D devoptab_list +0000008c T IRQ_Enable 00000090 B dex_array 00000090 T sbmp16_frame 00000092 T __cxa_end_catch @@ -810,9 +982,10 @@ 00000094 T _findenv_r 00000094 t _GLOBAL__sub_I__ZNSt12ctype_bynameIcEC2ERKSsj 00000094 t _GLOBAL__sub_I__ZNSt12ctype_bynameIwEC2ERKSsj -00000094 t _GLOBAL__sub_I_last_error 00000094 t _ZL17parse_lsda_headerP15_Unwind_ContextPKhP16lsda_header_info 00000094 T tte_init_base +00000096 T _open_r +00000098 T FindDevice 00000098 t get_eit_entry 00000098 T memset 0000009c T _Z29update_memory_buffer_checksumb @@ -821,12 +994,17 @@ 0000009c W _ZNSt6vectorIjSaIjEE17_M_realloc_appendIJjEEEvDpOT_ 0000009c W _ZNSt6vectorIP10script_varSaIS1_EE17_M_realloc_appendIJS1_EEEvDpOT_ 000000a0 T isr_master +000000a2 T __sflags +000000a4 T _Z5setupv 000000a4 T _ZN11textbox_var19insert_virtual_textEPh 000000a8 r _ZL10ENG_SILVER 000000a8 r _ZL10ENG_YELLOW 000000a8 r _ZL11ENG_CRYSTAL +000000a8 r _ZL11ENG_CRYSTAL 000000a8 r _ZL12ENG_RED_BLUE 000000a8 r _ZL8ENG_GOLD +000000aa T _ZN8rom_data11fill_valuesEPK8ROM_DATA +000000ac t _GLOBAL__sub_I_last_error 000000ac T _malloc_trim_r 000000ac t _ZN12_GLOBAL__N_14pool4freeEPv.constprop.0 000000ae T memcpy @@ -835,26 +1013,31 @@ 000000b4 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE15_M_replace_coldEPcjPKcjj 000000b4 T irq_delete 000000b4 T utf8_decode_char +000000b6 T _close_r 000000b6 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEjjPKcj 000000b8 T _ZN11textbox_var11insert_textEPh 000000bc T _Z12erase_sectorj +000000bc T _ZNK10__cxxabiv121__vmi_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_ 000000bc T sbmp16_line 000000bf R gen_1_index_array 000000c0 T _Z26initalize_memory_locationsv +000000c0 T _ZSt23__construct_ios_failurePvPKc 000000c8 T _ZN10sprite_var18insert_sprite_dataEPhPKjjPKt 000000c8 T srf_init 000000c8 T strchr 000000ca T memmove 000000cc T __cxa_type_match +000000d4 T _fclose_r 000000d4 T tte_get_text_size 000000d6 T _ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE 000000d8 W _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEjjPKcj -000000dc T _ZN13Pokemon_Party22fill_simple_pkmn_arrayEv +000000e4 W _ZNSo5flushEv 000000e8 t unwind_phase2_forced +000000ea W _ZNSo3putEc 000000ec T tte_write 000000f0 B _Z9out_arrayB5cxx11 +000000f0 T _ZN13Pokemon_Party22fill_simple_pkmn_arrayEv 000000f4 T _ZN7Pokemon12convert_textEPhiii -000000f8 B dialogue 000000fa T __cxa_call_unexpected 000000fc T __udivsi3 000000fc R EVOLUTIONS @@ -866,20 +1049,27 @@ 000000fc R POWER_POINTS 00000101 R _ctype_ 00000104 t _ZL28read_encoded_value_with_basehjPKhPj +00000108 T _Z12pokedex_initv +00000108 T _Z17global_next_framev 00000108 T _ZN7Pokemon20generate_pid_save_ivEhhPh 00000110 T _Z16copy_ram_to_savePhjj -00000114 T _Z17global_next_framev 00000114 T sbmp16_floodfill_internal 00000118 T _Z16copy_save_to_ramjPhj 00000120 D _impure_data +00000120 T _Z4loopPhS_P6GB_ROMP18Simplified_Pokemonb 00000120 T _ZN19mystery_gift_script17changeSpriteMacroEhj +00000120 B dialogue 00000126 T _ZN11Button_Menu16organize_buttonsEv 00000128 T _memalign_r +00000128 t global_stdio_init.part.0 00000128 T irq_set 0000012c T __cxa_guard_acquire 0000012c t _GLOBAL__sub_I__ZN9__gnu_cxx9__freeresEv +0000012e W _ZNSt12system_errorC1ESt10error_codePKc +0000012e W _ZNSt12system_errorC2ESt10error_codePKc 00000130 T __divsi3 00000130 T _Z15is_save_correctPhjj +0000013c T _Z5printNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE 0000013c T _ZN11Button_Menu10add_buttonE6Buttoni 00000148 T sbmp16_blit 0000014c W _ZNSt6vectorIS_IhSaIhEESaIS1_EE17_M_realloc_appendIJRKS1_EEEvDpOT_ @@ -889,12 +1079,16 @@ 00000168 B __sf 00000168 T _Z17print_mem_sectionv 0000017c T _Z13load_graphicsv -000001a4 T _Z17populate_dialoguev +0000017c W _ZNSo9_M_insertIlEERSoT_ +0000017c W _ZNSo9_M_insertImEERSoT_ +0000018e T _ZNK10__cxxabiv121__vmi_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE +00000194 T __sflush_r 000001b0 T _ZN9music_var17insert_music_dataEPhhhhj -000001c4 T main 000001dc T _Z21load_temp_box_sprites13Pokemon_Party 000001dc T _ZN7Pokemon19alocate_data_chunksEPhS0_S0_S0_ +000001e8 T main 000001f4 T _free_r +000001f8 T _Z17populate_dialoguev 00000200 R gen_1_Eng_char_array 00000200 R gen_1_FreGer_char_array 00000200 R gen_1_ItaSpa_char_array @@ -907,46 +1101,57 @@ 00000200 R gen_3_Jpn_char_array 0000020c T __aeabi_ddiv 0000020c T __divdf3 -00000224 T _Z14inject_mysteryR13Pokemon_Party +0000020e T _freopen_r +00000214 T _Z9test_mainv 00000224 T strcmp -0000022c T _Z20load_eternal_spritesv +00000238 T _Z18handleIncomingBytehPhS_P6GB_ROMP18Simplified_Pokemonb 00000250 T _ZN7Pokemon9load_dataEiPhii 0000025c t _strtol_l.part.0 00000280 R EVENT_PKMN 0000028c T _ZN11Button_Menu11button_mainEv 00000290 T __aeabi_dmul 00000290 T __muldf3 +00000294 T _Z20load_eternal_spritesv +000002a0 B payload_storage 000002a4 T _ZN8rom_data14print_rom_infoEv -000002a8 T _Z15run_conditionali 000002cc t __gnu_unwind_pr_common +000002d4 W _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i 000002e0 T _ZN7Pokemon12set_to_eventEv 000002e4 T _Unwind_VRS_Pop +000002ec T _Z15run_conditionali 0000030c T __gnu_unwind_execute 00000310 T __adddf3 00000310 T __aeabi_dadd 00000314 T __aeabi_dsub 00000314 T __subdf3 -0000037c t _GLOBAL__sub_I_obj_buffer 0000037c T _Z21populate_game_buttonsv -00000388 T _Z7creditsv +000003ac T _Z14inject_mysteryR13Pokemon_Party +00000400 B internal_io 00000400 B obj_buffer 00000408 D __malloc_av_ +00000430 t _GLOBAL__sub_I_obj_buffer 00000444 T _Z17load_temp_spritesi 0000044e D gen2_debug_box_data 00000454 T tte_cmd_default 00000462 D gen1_debug_box_data -00000468 T _Z12pokedex_loopv +00000480 T _Z9text_loopi +00000494 T _ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE 000004ee T __gxx_personality_v0 -00000504 T _Z9text_loopi 00000588 T _malloc_r 000005bc T _ZN8Box_Menu8box_mainE13Pokemon_Party -00000618 T _ZN7Pokemon20convert_to_gen_threeEbb +00000600 T _ZN7Pokemon20convert_to_gen_threeEbb +000006c0 B event_script 000006c0 B party_data +000006c0 B transfer_script +000006c8 T _Z15populate_scriptv 000007e0 B NAMES -000008dc B script +000007f4 T _Z12pokedex_loopv +00000850 T _Z7creditsv 00000bd0 R JPN_NAMES +00000d3c T _Z16generate_payload6GB_ROMb 00001000 B global_memory_buffer +00001000 d handles 000011f8 t _GLOBAL__sub_I_EXP_TYPES +0000158c T _ZN19mystery_gift_script16build_script_oldER13Pokemon_Party 00001f80 R MOVESETS -00002acc T _Z15populate_scriptv -0000447e T _ZN19mystery_gift_script12build_scriptER13Pokemon_Party +0000449e T _ZN19mystery_gift_script12build_scriptER13Pokemon_Party diff --git a/include/debug_mode.h b/include/debug_mode.h index 925b2fc..e7ff40f 100644 --- a/include/debug_mode.h +++ b/include/debug_mode.h @@ -2,15 +2,15 @@ #define DEBUG_MODE_H #define DEBUG_MODE false -#define IGNORE_GAME_PAK false -#define IGNORE_LINK_CABLE false +#define IGNORE_GAME_PAK true +#define IGNORE_LINK_CABLE true #define IGNORE_MG_E4_FLAGS false -#define IGNORE_UNRECEIVED_PKMN false +#define IGNORE_UNRECEIVED_PKMN true #define FORCE_TUTORIAL false -#define DONT_REMOVE_PKMN false +#define DONT_REMOVE_PKMN true #define SHOW_INVALID_PKMN false -#define DEBUG_GAME FIRERED_ID +#define DEBUG_GAME SAPPHIRE_ID #define DEBUG_VERS VERS_1_0 #define DEBUG_LANG LANG_ENG diff --git a/include/script_obj.h b/include/script_obj.h index b075cb2..2afd6bc 100644 --- a/include/script_obj.h +++ b/include/script_obj.h @@ -18,7 +18,8 @@ public: int get_cond_id(); private: - std::string text; + std::string_view text; + bool has_text = false; int next_index; int conditional_index; int next_false_index; diff --git a/source/box_menu.cpp b/source/box_menu.cpp index 84be809..3d1445a 100644 --- a/source/box_menu.cpp +++ b/source/box_menu.cpp @@ -129,6 +129,7 @@ int Box_Menu::box_main(Pokemon_Party party_data) tte_set_pos(146, 80); tte_write("Lv: "); tte_write(std::to_string(party_data.get_simple_pkmn(index).met_level).c_str()); + update_pos = false; } } global_next_frame(); diff --git a/source/mystery_gift_builder.cpp b/source/mystery_gift_builder.cpp index 128744f..16de63a 100644 --- a/source/mystery_gift_builder.cpp +++ b/source/mystery_gift_builder.cpp @@ -60,6 +60,7 @@ mystery_gift_script::mystery_gift_script() ptr_block_ptr_high = (curr_rom.loc_gSaveBlock1PTR + 0x02); } + void mystery_gift_script::build_script(Pokemon_Party &incoming_box_data) { std::vector mg_variable_list; diff --git a/source/mystery_gift_injector.cpp b/source/mystery_gift_injector.cpp index 2f7a5e0..393859c 100644 --- a/source/mystery_gift_injector.cpp +++ b/source/mystery_gift_injector.cpp @@ -13,54 +13,55 @@ static u8 lanette_wonder_card[0x14E] = { 0x3F, 0x7C, 0x00, 0x00, 0xBA, 0xB4, 0xBE, 0xB9, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0xCA, 0xCC, 0xC9, 0xC0, 0xBF, 0xCD, 0xCD, 0xC9, 0xCC, 0x00, 0xC0, 0xBF, 0xC8, 0xC8, 0xBF, 0xC6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xCE, 0xE6, 0xD5, 0xE2, 0xE7, 0xDA, 0xD9, 0xE6, 0x00, 0xBD, 0xD9, 0xE6, 0xE8, 0xDD, 0xDA, 0xDD, 0xD7, 0xD5, 0xE8, 0xD9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC2, 0xD9, 0xD5, 0xD8, 0x00, 0xE8, 0xE3, 0x00, 0xCC, 0xE3, 0xE9, 0xE8, 0xD9, 0x00, 0xA2, 0xA2, 0xA5, 0x00, 0xD5, 0xE2, 0xD8, 0x00, 0xD7, 0xDC, 0xD5, 0xE8, 0x00, 0xEB, 0xDD, 0xE8, 0xDC, 0x00, 0xC6, 0xBB, 0xC8, 0xBF, 0xCE, 0xCE, 0xBF, 0x00, 0xE8, 0xE3, 0x00, 0xDB, 0xD9, 0xE8, 0x00, 0xED, 0xE3, 0xE9, 0xE6, 0x00, 0xE8, 0xE6, 0xD5, 0xE2, 0xE7, 0xDA, 0xD9, 0xE6, 0xD9, 0xD8, 0x00, 0xCA, 0xC9, 0xC5, 0x1B, 0xC7, 0xC9, 0xC8, 0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xBE, 0xE3, 0x00, 0xE2, 0xE3, 0xE8, 0x00, 0xE8, 0xE3, 0xE7, 0xE7, 0x00, 0xE8, 0xDC, 0xDD, 0xE7, 0x00, 0xBF, 0xEC, 0xD7, 0xDC, 0xD5, 0xE2, 0xDB, 0xD9, 0x00, 0xBD, 0xD5, 0xE6, 0xD8, 0x00, 0xD6, 0xD9, 0xDA, 0xE3, 0xE6, 0xD9, 0x00, 0x00, 0x00, 0xE6, 0xD9, 0xD7, 0xD9, 0xDD, 0xEA, 0xDD, 0xE2, 0xDB, 0x00, 0xED, 0xE3, 0xE9, 0xE6, 0x00, 0xE8, 0xE6, 0xD5, 0xE2, 0xE7, 0xDA, 0xD9, 0xE6, 0xD9, 0xD8, 0x00, 0xCA, 0xC9, 0xC5, 0x1B, 0xC7, 0xC9, 0xC8, 0xAB, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; // checksum bool inject_mystery(Pokemon_Party &incoming_box_data) -{ - mystery_gift_script script; - if (ENABLE_OLD_EVENT) - { - script.build_script_old(incoming_box_data); - } - else - { - script.build_script(incoming_box_data); - } - u32 checksum = 0; - if (curr_rom.is_ruby_sapphire()) - { - checksum = script.calc_checksum32(); - } - else - { - checksum = script.calc_crc16(); - } - - // Add in Wonder Card - copy_save_to_ram(memory_section_array[4], &global_memory_buffer[0], 0x1000); - if (curr_rom.is_hoenn()) - { - for (int i = 0; i < 0x14E; i++) + { + mystery_gift_script script; + if (ENABLE_OLD_EVENT) { - global_memory_buffer[curr_rom.offset_wondercard + i] = lanette_wonder_card[i]; + script.build_script_old(incoming_box_data); } - } - else - { - for (int i = 0; i < 0x14E; i++) + else { - global_memory_buffer[curr_rom.offset_wondercard + i] = bill_wonder_card[i]; + script.build_script(incoming_box_data); + } + u32 checksum = 0; + if (curr_rom.is_ruby_sapphire()) + { + checksum = script.calc_checksum32(); + } + else + { + checksum = script.calc_crc16(); } - } - // Set checksum and padding - global_memory_buffer[curr_rom.offset_script] = checksum >> 0; - global_memory_buffer[curr_rom.offset_script + 1] = checksum >> 8; - global_memory_buffer[curr_rom.offset_script + 2] = checksum >> 16; - global_memory_buffer[curr_rom.offset_script + 3] = checksum >> 24; + // Add in Wonder Card + copy_save_to_ram(memory_section_array[4], &global_memory_buffer[0], 0x1000); + if (curr_rom.is_hoenn()) + { + for (int i = 0; i < 0x14E; i++) + { + global_memory_buffer[curr_rom.offset_wondercard + i] = lanette_wonder_card[i]; + } + } + else + { + for (int i = 0; i < 0x14E; i++) + { + global_memory_buffer[curr_rom.offset_wondercard + i] = bill_wonder_card[i]; + } + } - // Add in Mystery Script data - for (int i = 0; i < MG_SCRIPT_SIZE; i++) - { - global_memory_buffer[curr_rom.offset_script + 4 + i] = script.get_script_value_at(i); - } + // Set checksum and padding + global_memory_buffer[curr_rom.offset_script] = checksum >> 0; + global_memory_buffer[curr_rom.offset_script + 1] = checksum >> 8; + global_memory_buffer[curr_rom.offset_script + 2] = checksum >> 16; + global_memory_buffer[curr_rom.offset_script + 3] = checksum >> 24; + + // Add in Mystery Script data + for (int i = 0; i < MG_SCRIPT_SIZE; i++) + { + global_memory_buffer[curr_rom.offset_script + 4 + i] = script.get_script_value_at(i); + } + update_memory_buffer_checksum(false); erase_sector(memory_section_array[4]); copy_ram_to_save(&global_memory_buffer[0], memory_section_array[4], 0x1000); @@ -68,9 +69,7 @@ bool inject_mystery(Pokemon_Party &incoming_box_data) // Add in Pokemon and Dex data copy_save_to_ram(0x1E000, &global_memory_buffer[0], 0x1000); int curr_index = 0; - int dex_nums[MAX_PKMN_IN_BOX] = {}; - if (ENABLE_OLD_EVENT) { for (int i = 0; i < MAX_PKMN_IN_BOX; i++) // Add in the Pokemon data @@ -91,7 +90,6 @@ bool inject_mystery(Pokemon_Party &incoming_box_data) curr_index += POKEMON_SIZE; } } - for (int i = 0; i < MAX_PKMN_IN_BOX; i++) // Add in the dex numbers { global_memory_buffer[curr_index] = dex_nums[i]; diff --git a/source/pokemon_party.cpp b/source/pokemon_party.cpp index 07fa715..5d72fb7 100644 --- a/source/pokemon_party.cpp +++ b/source/pokemon_party.cpp @@ -21,10 +21,9 @@ byte gen1_debug_box_data[0x462] = { // Num of Pokemon 0x14, // Pokemon 1-20 - // 0x02, 0x70, 0x70, 0x70, 0x71, 0x71, 0x70, 0x71, 0x7B, 0x71, 0x71, 0x7C, 0x71, 0x71, 0x71, 0x71, 0x24, 0x24, 0xA5, 0x15, 0xFF, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0xFF, + 0x02, 0x70, 0x70, 0x70, 0x71, 0x71, 0x70, 0x71, 0x7B, 0x71, 0x71, 0x7C, 0x71, 0x71, 0x71, 0x71, 0x24, 0x24, 0xA5, 0x15, 0xFF, // Pokemon list - 0x02, 0x00, 0x11, 100, 0x00, 0x07, 0x03, 0xFF, 0x28, 0x51, 0x00, 0x00, 0x6F, 0xC6, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE6, 0xDE, 0x23, 0x28, 0x00, 0x00, + 0x02, 0x00, 0x11, 0x64, 0x00, 0x07, 0x03, 0xFF, 0x28, 0x51, 0x00, 0x00, 0x6F, 0xC6, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE6, 0xDE, 0x23, 0x28, 0x00, 0x00, 0x70, 0x00, 0x12, 0x04, 0x00, 0x07, 0x03, 0xFF, 0x28, 0x51, 0x00, 0x00, 0x6F, 0xC6, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5D, 0xD8, 0x23, 0x28, 0x00, 0x00, 0x70, 0x00, 0x12, 0x04, 0x00, 0x07, 0x03, 0xFF, 0x28, 0x51, 0x00, 0x00, 0x6F, 0xC6, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x34, 0x13, 0x23, 0x28, 0x00, 0x00, 0x70, 0x00, 0x0F, 0x03, 0x00, 0x07, 0x03, 0xFF, 0x28, 0x51, 0x00, 0x00, 0x6F, 0xC6, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDA, 0x81, 0x23, 0x28, 0x00, 0x00, @@ -164,7 +163,7 @@ void Pokemon_Party::start_link() { if (curr_gb_rom.generation == 1) { - for (int i = 0; i < 0x44E; i++) + for (int i = 0; i < 0x462; i++) { box_data_array[i] = gen1_debug_box_data[i]; } @@ -294,7 +293,7 @@ bool Pokemon_Party::fill_simple_pkmn_array() int Pokemon_Party::get_num_pkmn() { - return 30;//box_data_array[0]; + return box_data_array[0]; } bool Pokemon_Party::get_contains_invalid() diff --git a/source/script_array.cpp b/source/script_array.cpp index e079925..9451b71 100644 --- a/source/script_array.cpp +++ b/source/script_array.cpp @@ -46,7 +46,7 @@ void populate_dialogue() dialogue[DIA_WHAT_GAME_TRANS] = "And which Game Boy Pok@mon\ngame are you transferring\nfrom?"; dialogue[DIA_WHAT_LANG_TRANS] = "What language is the Game\nBoy Pok@mon game that you're\ntransferring from?"; dialogue[DIA_NO_GB_ROM] = "I'm sorry, but that version\nin that language is not\ncurrently supported."; - dialogue[DIA_IN_BOX] = "Great! Let's take a look at\nthe Pok@mon that will be\ntransfered.|Please remember, once a\nPok@mon is transfered, it\nCANNOT be returned to the\nGame Boy Game Pak.|Select confirm once you're\nready, or select cancel if\nyou want to keep the Pok@mon\non your Game Boy Game Pak."; + dialogue[DIA_IN_BOX] = "Alright! Let's take a look\nat the Pok@mon that will be\ntransfered.|Please remember, once a\nPok@mon is transfered, it\nCANNOT be returned to the\nGame Boy Game Pak.|Select confirm once you're\nready, or select cancel if\nyou want to keep the Pok@mon\non your Game Boy Game Pak."; dialogue[DIA_MYTHIC_CONVERT] = "It looks like you have a\nrare Mythical Pok@mon!|Due to their rarity, it\nseems they've overloaded the\nmachine.|I can stablize them if you'd\nlike, but it'll change some\nthings like name, Original\nTrainer, and Shininess.|Otherwise I can leave them\nas is, but there's no\nguarentee that they'll be\ntransferrable in the future.|Do you want me to stablize\nthem?"; dialogue[DIA_CANCEL] = "No worries! Feel free to\ncome back if you change your\nmind!|See you around!"; dialogue[DIA_SOME_INVALID_PKMN] = "I see there is at least one\ninvalid Pok@mon in your\ncurrent box.|Invalid Pok@mon won't be\nable to be transfered, but\nthe rest will transfer with no problems!"; @@ -117,13 +117,13 @@ void populate_script() transfer_script[DIA_MYTHIC_CONVERT] = script_obj(dialogue[DIA_MYTHIC_CONVERT], CMD_MYTHIC_MENU); transfer_script[CMD_MYTHIC_MENU] = script_obj(CMD_MYTHIC_MENU, DIA_IN_BOX); transfer_script[DIA_IN_BOX] = script_obj(dialogue[DIA_IN_BOX], CMD_BOX_MENU); - transfer_script[CMD_BOX_MENU] = script_obj(CMD_BOX_MENU, CMD_CONTINUE_LINK, DIA_CANCEL); + transfer_script[CMD_BOX_MENU] = script_obj(CMD_BOX_MENU, CMD_IMPORT_POKEMON, DIA_CANCEL); transfer_script[DIA_CANCEL] = script_obj(dialogue[DIA_CANCEL], CMD_CANCEL_LINK); - transfer_script[CMD_CONTINUE_LINK] = script_obj(CMD_CONTINUE_LINK, CMD_IMPORT_POKEMON); + transfer_script[CMD_IMPORT_POKEMON] = script_obj(CMD_IMPORT_POKEMON, CMD_CONTINUE_LINK); + transfer_script[CMD_CONTINUE_LINK] = script_obj(CMD_CONTINUE_LINK, DIA_TRANS_GOOD); transfer_script[CMD_CANCEL_LINK] = script_obj(CMD_CANCEL_LINK, CMD_END_SCRIPT); // Complete the transfer and give messages based on the transfered Pokemon - transfer_script[CMD_IMPORT_POKEMON] = script_obj(CMD_IMPORT_POKEMON, DIA_TRANS_GOOD); transfer_script[DIA_TRANS_GOOD] = script_obj(dialogue[DIA_TRANS_GOOD], COND_NEW_POKEMON); transfer_script[COND_NEW_POKEMON] = script_obj(COND_NEW_POKEMON, DIA_NEW_DEX, DIA_NO_NEW_DEX); transfer_script[DIA_NEW_DEX] = script_obj(dialogue[DIA_NEW_DEX], COND_IS_HOENN); diff --git a/source/script_obj.cpp b/source/script_obj.cpp index e97bcab..3951cc8 100644 --- a/source/script_obj.cpp +++ b/source/script_obj.cpp @@ -5,12 +5,12 @@ #include "pokemon_party.h" #include "script_array.h" -script_obj::script_obj(){ -}; +script_obj::script_obj(){}; script_obj::script_obj(std::string_view nText, int nNext) { text = nText; + has_text = true; next_index = nNext; conditional_index = 0; next_false_index = 0; @@ -18,7 +18,6 @@ script_obj::script_obj(std::string_view nText, int nNext) script_obj::script_obj(int nRun, int nNext) { - text = ""; next_index = nNext; conditional_index = nRun; next_false_index = nNext; @@ -26,16 +25,21 @@ script_obj::script_obj(int nRun, int nNext) script_obj::script_obj(int nRun, int nNext_if_true, int nNext_if_false) { - text = ""; next_index = nNext_if_true; conditional_index = nRun; next_false_index = nNext_if_false; } - std::string script_obj::get_text() { - return text; + if (has_text) + { + return std::string(text).data(); + } + else + { + return ""; + } } int script_obj::get_true_index()