pokeemerald/asm
PikalaxALT 52db3ad5aa Decompile TV (#80)
* ClearTVShowData

* special_0x44

* DoTVShow (nonmatching because align)

* DoTVShowBravoTrainerPokemonProfile

* Update field names

* DoTVShowBravoTrainerBattleTower

* Renaming of struct fields

* sub_80EBFF4 and UpdateTVScreensOnMap

* SetTVMetatilesOnMap

* Power buttons for the TV screens on the map

* special_0x45

* sub_80EC18C

* special_0x4a

* ResetGabbyAndTy

* GabbyAndTyBeforeInterview

* GabbyAndTyAfterInterview

* Through IsTVShowInSearchOfTrainersAiring

* GabbyAndTyGetLastQuote

* GabbyAndTyGetLastBattleTrivia

* GabbyAndTySetScriptVarsToFieldObjectLocalIds

* InterviewAfter; use TVShow as a precursor for making the individual show structs anonymous

* Make TV structs anonymous within the union

* Move the TV union to its own subheader

* Move TV show enums to the global.tv.h subheader

* Funcion renaming

* Apply static attributes where able

* PutPokemonTodayCaughtOnAir

* sub_80EC8A4

* PutPokemonTodayFailedOnTheAir

* sub_80EC9E8, sub_80ECA10

* sub_80ECA38

* sub_80ECB00

* Put3CheersForPokeblocksOnTheAir

* PutFanClubSpecialOnTheAir

* ContestLiveUpdates_BeforeInterview

* Other before-interview Contest Live Updates functions

* ContestLiveUpdates_BeforeInterview_5

* InterviewAfter_BravoTrainerPokemonProfile

* BravoTrainerPokemonProfile_BeforeInterview1

* BravoTrainerPokemonProfile_BeforeInterview2

* Disassemble TV data

* Decompile TV data

* InterviewAfter_BravoTrainerBattleTowerProfile

* SaveRecordedItemPurchasesForTVShow

* PutNameRaterShowOnTheAir

* StartMassOutbreak

* PutLilycoveContestLadyShowOnTheAir

* InterviewAfter_FanClubLetter

* Rip TV strings

* InterviewAfter_RecentHappenings

* InterviewAfter_PkmnFanClubOpinions

* sub_80ED718

* EndMassOutbreak

* sub_80ED888

* sub_80ED8B4

* UpdateMassOutbreakTimeLeft

* sub_80ED950

* PutFishingAdviceShowOnTheAir

* through sub_80EDA80

* ewram and common syms are now fetched from the object files

* BSS symbols are taken from the tv.o file

* through sub_80EDC60

* sub_80EDCE8

* sub_80EDD78

* through sub_80EDE84

* nomatching sub_80EDE98

* sub_80EDFB4

* sub_80EE104

* sub_80EE104

* sub_80EE184

* sub_80EE2CC

* sub_80EE35C

* sub_80EE44C

* sub_80EE4DC

* sub_80EE5A4

* sub_80EE69C

* sub_80EE72C

* sub_80EE7C0

* sub_80EE818

* sub_80EE8C8

* sub_80EEA70

* sub_80EEB98

* sub_80EEBF4

* through sub_80EED60

* Functions relating to Pokemon News

* sub_80EEF6C

* GetPriceReduction

* IsPriceDiscounted

* sub_80EF120

* through sub_80EF370

* sub_80EF40C

* HasMixableShowAlreadyBeenSpawnedWithPlayerID

* TV_SortPurchasesByQuantity

* FindActiveBroadcastByShowType_SetScriptResult

* InterviewBefore

* through sub_80EF88C

* through sub_80EF93C

* through sub_80EFA24

* through TV_BernoulliTrial

* sub_80EFB58

* sub_80EFBA4

* sub_80EFBDC

* through sub_80EFD98

* ChangePokemonNickname

* ChangeBoxPokemonNickname

* sub_80EFF9C

* through player_id_to_dword

* CheckForBigMovieOrEmergencyNewsOnTV

* GetMomOrDadStringForTVMessage

* sub_80F01E8

* sub_80F0358

* sub_80F049C

* TV record mixing functions

* sub_80F06D0

* sub_80F0708 nonmatching

* through sub_80F0B24

* sub_80F0B64

* through sub_80F0C04

* sub_80F0C7C

* sub_80F0D60

* sub_80F0E58

* sub_80F0E84

* through sub_80F0F24

* sub_80F0F64

* sub_80F1208

* sub_80F1254

* sub_80F1290

* sub_80F12A4

* sub_80F14F8

* DoTVShowTodaysSmartShopper

* DoTVShowTheNameRaterShow

* DoTVShowPokemonTodaySuccessfulCapture

* DoTVShowPokemonTodayFailedCapture

* DoTVShowPokemonFanClubLetter

* DoTVShowRecentHappenings

* DoTVShowPokemonFanClubOpinions

* DoTVShowPokemonNewsMassOutbreak

* DoTVShowPokemonContestLiveUpdates

* DoTVShowPokemonBattleUpdate

* DoTVShow3CheersForPokeblocks

* DoTVShowInSearchOfTrainers

* Label GabbyAndTyData fields; remove ddump comments from data/text/tv.inc

* DoTVShowPokemonAngler

* DoTVShowTheWorldOfMasters; update RAM symbols and field names

* Decorate static functions

* DoTVShowTodaysRivalTrainer; region map enums

* TVDewfordTrendWatcherNetworkTextGroup

* DoTVShowHoennTreasureInvestigators

* DoTVShowFindThatGamer

* DoTVShowBreakingNewsTV

* DoTVShowSecretBaseVisit

* DoTVShowPokemonLotterWinnerFlashReport

* DoTVShowThePokemonBattleSeminar

* DoTVShowTrainerFanClubSpecial, DoTVShowTrainerFanClub

* DoTVShowSpotTheCuties

* DoTVShowPokemonNewsBattleFrontier

* DoTVShowWhatsNo1InHoennToday

* Helpers for DoTVShowSecretBaseSecrets

* DoTVShowSecretBaseSecrets

* DoTVShowSafariFanClub

* Finish decompilation of tv.s

* Some renaming

* Rename text group pointers

* revoke statis; pokenews enums

* Labels are number one

* Label all TV struct fields

* Make data/text/tv.inc more readable

* Split data/text/tv.inc

* Rename pokenews text pointers

* Frontier Symbol constants; indicate static rodata objects with 's' prefix

* Fix leading spaces/tabs

F*** CLion sometimes

* Fix inconsequential warning
2017-10-13 10:09:36 -05:00
..
macros Add window_template_terminator macro 2017-09-25 20:24:14 -05:00
bard_music.s split more code 2017-01-15 17:14:00 -08:00
battle_1.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
battle_5.s more of battle2 done 2017-10-01 18:54:01 +02:00
battle_7.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
battle_anim_80A9C70.s more of battle2 done 2017-10-01 18:54:01 +02:00
battle_anim_80D51AC.s battle 4 up to a8 2017-09-26 22:39:59 +02:00
battle_anim_80FE840.s more of battle2 done 2017-10-01 18:54:01 +02:00
battle_anim_815A0D4.s more of battle2 done 2017-10-01 18:54:01 +02:00
battle_anim_8170478.s more of battle2 done 2017-10-01 18:54:01 +02:00
battle_anim_sound_tasks.s dumped a lot of strings 2017-09-05 17:04:11 +02:00
battle_anim.s Merge branch 'master' into decomp_battle2 2017-10-04 11:18:50 +02:00
battle_controller_linkopponent.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
battle_controller_linkpartner.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
battle_controller_opponent.s ai switching basically done 2017-10-10 21:45:07 +02:00
battle_controller_player_partner.s ai switching basically done 2017-10-10 21:45:07 +02:00
battle_controller_player.s battle9 is being worked on 2017-10-10 18:01:45 +02:00
battle_controller_recorded_opponent.s battle9 is being worked on 2017-10-10 18:01:45 +02:00
battle_controller_recorded_player.s battle9 is being worked on 2017-10-10 18:01:45 +02:00
battle_controller_safari.s battle9 is being worked on 2017-10-10 18:01:45 +02:00
battle_controller_wally.s battle9 is being worked on 2017-10-10 18:01:45 +02:00
battle_frontier_1.s start decompiling battle2 2017-10-01 01:12:42 +02:00
battle_frontier_2.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
battle_interface.s more of battle2 done 2017-10-01 18:54:01 +02:00
battle_link_817C95C.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
battle_records.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
battle_setup.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
battle_tent.s split remaining rom files. 2017-09-16 21:32:37 -04:00
battle_tower.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
battle_transition.s start decompiling battle2 2017-10-01 01:12:42 +02:00
berry_blender.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
berry_fix_program.s Remaining functions 2017-09-18 14:07:34 -04:00
berry_tag_screen.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
bike.s berry.s decompiled 2017-09-13 11:16:26 +02:00
blit.s split asm files 2016-11-01 10:16:34 -07:00
cable_car_util.s decompile more of sprite.s 2017-09-02 01:42:44 +02:00
cable_car.s Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
cable_club.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
clear_save_data_screen.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
clock.s port lottery corner 2017-09-08 18:48:55 +02:00
coins.s start coins decomp 2017-09-09 14:24:18 +02:00
contest_ai.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
contest_effect.s rename some functions to match pokeruby 2017-01-14 17:33:43 -08:00
contest_link_80F57C4.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
contest_link_80FC4F4.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
contest_link_81D9DE4.s start decompiling battle2 2017-10-01 01:12:42 +02:00
contest_painting.s more of battle2 done 2017-10-01 18:54:01 +02:00
contest.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
coord_event_weather.s split more code 2017-01-15 17:14:00 -08:00
credits.s update labels 2017-10-06 19:48:18 -04:00
crt0.s Extract baserom calls from files 2017-09-17 20:33:32 -05:00
cute_sketch.s use ramscrgen 2016-11-01 17:36:37 -05:00
daycare.s fix merge conflicts 2017-09-21 10:50:15 +02:00
decoration_inventory.s split roamer and decor inventories 2017-09-04 13:01:57 +02:00
decoration.s decompile metatile behav 2017-09-29 19:03:50 +02:00
dewford_trend.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
easy_chat.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
evolution_graphics.s decompile sound.s 2017-09-02 17:03:46 +02:00
evolution_scene.s battle2 more and more and more 2017-10-06 00:12:01 +02:00
field_camera.s label gMapHeader 2017-09-08 18:31:57 +02:00
field_control_avatar.s decompile braille_puzzles.c 2017-10-05 13:02:39 -04:00
field_door.s decompile metatile behav 2017-09-29 19:03:50 +02:00
field_effect_helpers.s decompile metatile behav 2017-09-29 19:03:50 +02:00
field_effect.s Fix merge conflicts 2017-09-20 13:12:43 +02:00
field_ground_effect.s BerryTree 2017-09-15 14:26:01 -04:00
field_message_box.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
field_player_avatar.s decompile metatile behav 2017-09-29 19:03:50 +02:00
field_poison.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
field_region_map.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
field_screen.s start decompiling battle2 2017-10-01 01:12:42 +02:00
field_tasks.s decompile metatile behav 2017-09-29 19:03:50 +02:00
fieldmap.s UpdateFieldObjectCoordsForCameraUpdate 2017-09-10 15:35:21 -04:00
fldeff_80F9BCC.s decompile metatile behav 2017-09-29 19:03:50 +02:00
fldeff_cut.s decompile metatile behav 2017-09-29 19:03:50 +02:00
fldeff_groundshake.s Merge branch 'master' into field_map_obj 2017-09-17 13:38:33 -04:00
fldeff_softboiled.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
fldeff_strength.s BerryTree 2017-09-15 14:26:01 -04:00
fldeff_sweetscent.s BerryTree 2017-09-15 14:26:01 -04:00
fldeff_teleport.s BerryTree 2017-09-15 14:26:01 -04:00
fossil_specials.s split remaining rom files. 2017-09-16 21:32:37 -04:00
hall_of_fame.s Merge remote-tracking branch 'pret/master' 2017-09-16 14:24:47 -05:00
heal_location.s split asm files 2016-11-01 10:16:34 -07:00
international_string_util.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
intro_credits_graphics.s sprite.c: move ewram, iwram, rom data 2017-09-02 13:11:19 +02:00
intro.s Extract baseroms from intro_credits_graphics.s 2017-10-01 03:08:19 -05:00
item_icon.s split remaining rom files. 2017-09-16 21:32:37 -04:00
item_menu_icons.s split remaining rom files. 2017-09-16 21:32:37 -04:00
item_menu.s decompile money 2017-09-29 00:11:42 +02:00
item_use.s decompile metatile behav 2017-09-29 19:03:50 +02:00
item.s begin new save.c, label lots of things 2017-09-03 22:50:17 +02:00
landmark.s split asm files 2016-11-01 10:16:34 -07:00
learn_move.s fix merge conflicts 2017-09-21 10:50:15 +02:00
libagbsyscall.s make VBlankIntr() match 2017-02-17 10:52:03 -08:00
libgcnmultiboot.s .s -> .inc 2016-11-01 08:29:13 -07:00
librfu.s BSS: src/main.o, src/dma3_manager.o 2017-09-30 09:32:46 -04:00
link.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
list_menu.s split remaining rom files. 2017-09-16 21:32:37 -04:00
load_save.s Merge branch 'master' into field_map_obj 2017-09-13 19:29:19 -04:00
m4a_1.s port siirtc from pokeruby 2016-11-02 14:06:41 -07:00
m4a_3.s Ported libmks4agb from pokeruby (#12) 2016-11-01 20:03:16 -07:00
macros.inc Extract scattered baseroms and cleanup 2017-09-25 16:27:02 -05:00
mail_data.s split remaining rom files. 2017-09-16 21:32:37 -04:00
mail.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
main_menu.s Extract baseroms from miscellaneous files 2017-10-04 02:38:25 -05:00
map_name_popup.s split remaining rom files. 2017-09-16 21:32:37 -04:00
map_obj_8097404.s BerryTree 2017-09-15 14:26:01 -04:00
map_obj_lock.s Merge branch 'master' into field_map_obj 2017-09-16 15:41:54 -04:00
math_util.s split remaining rom files. 2017-09-16 21:32:37 -04:00
mauville_old_man.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
menu_helpers.s start decompiling battle2 2017-10-01 01:12:42 +02:00
menu_indicators.s split remaining rom files. 2017-09-16 21:32:37 -04:00
menu.s battle 4 up to a8 2017-09-26 22:39:59 +02:00
mon_markings.s decompile sound.s 2017-09-02 17:03:46 +02:00
mystery_event_menu.s start decompiling battle2 2017-10-01 01:12:42 +02:00
mystery_event_script.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
naming_screen.s battle 4 commands are decompiled 2017-09-28 15:34:21 +02:00
new_menu_helpers.s split remaining rom files. 2017-09-16 21:32:37 -04:00
option_menu.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
party_menu.s battle2 more and more and more 2017-10-06 00:12:01 +02:00
player_pc.s fix merge conflicts 2017-09-21 10:50:15 +02:00
pokeball.s more of battle2 done 2017-10-01 18:54:01 +02:00
pokeblock_feed.s more of battle2 done 2017-10-01 18:54:01 +02:00
pokedex_area_screen.s split roamer and decor inventories 2017-09-04 13:01:57 +02:00
pokedex_cry_screen.s decompile sound.s 2017-09-02 17:03:46 +02:00
pokedex.s battle 4 commands are decompiled 2017-09-28 15:34:21 +02:00
pokemon_1.s one more function in pokemon1 2017-09-12 15:36:04 +02:00
pokemon_3.s pokemon 3 is almost decompiled 2017-09-12 15:05:40 +02:00
pokemon_animation.s label and decomp some pokemon animation stuff 2017-09-12 13:05:54 +02:00
pokemon_icon.s battle 4 up to a8 2017-09-26 22:39:59 +02:00
pokemon_item_effect.s battle2 more and more and more 2017-10-06 00:12:01 +02:00
pokemon_storage_system.s battle 4 commands are decompiled 2017-09-28 15:34:21 +02:00
pokemon_summary_screen.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
pokenav.s start decompiling battle2 2017-10-01 01:12:42 +02:00
rayquaza_scene.s split remaining rom files. 2017-09-16 21:32:37 -04:00
record_mixing.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
recorded_battle.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
region_map.s decompile field_special_scene.c 2017-09-22 22:45:47 -04:00
reset_rtc_screen.s Extract baseroms from reset_rtc_screen 2017-10-01 13:03:51 -05:00
reshow_battle_screen.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
rom_80A5C6C.s Merge remote-tracking branch 'pret/master' into baserom_extraction 2017-10-09 13:32:26 -05:00
rom_header.inc .s -> .inc 2016-11-01 08:29:13 -07:00
rom3.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
rom4.s decompile save_location.c 2017-10-08 22:21:34 -04:00
rom6.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
rotating_gate.s decompile sound.s 2017-09-02 17:03:46 +02:00
roulette_util.s Disassemble palette.s 2017-03-04 22:43:34 -06:00
roulette.s add important headers, const ptrs and egg hatch start 2017-09-18 18:36:05 +02:00
scrcmd.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
script_menu.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
script_movement.s split remaining rom files. 2017-09-16 21:32:37 -04:00
script_pokemon_util_80F87D8.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
secret_base.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
shop.s decompile money 2017-09-29 00:11:42 +02:00
slot_machine.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
smokescreen.s split remaining rom files. 2017-09-16 21:32:37 -04:00
start_menu.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
starter_choose.s update labels 2017-10-06 19:48:18 -04:00
title_screen.s Merge pull request #45 from DizzyEggg/decomp_battle4 2017-09-30 03:00:10 -05:00
trade.s Decompile TV (#80) 2017-10-13 10:09:36 -05:00
trader.s Split data3b.s 2017-09-25 11:23:44 -04:00
trainer_card.s start decompiling battle2 2017-10-01 01:12:42 +02:00
trainer_rematch.s split remaining rom files. 2017-09-16 21:32:37 -04:00
trainer_see.s Extract baseroms from and combine fldeff_emotion and trainer_see 2017-10-01 14:48:29 -05:00
unk_81BAD84.s split remaining rom files. 2017-09-16 21:32:37 -04:00
unk_sprite_file.s split remaining rom files. 2017-09-16 21:32:37 -04:00
unk_text_util.s split remaining rom files. 2017-09-16 21:32:37 -04:00
unk_transition_2.s split remaining rom files. 2017-09-16 21:32:37 -04:00
unk_transition.s split remaining rom files. 2017-09-16 21:32:37 -04:00
unknown_task.s start decompiling battle2 2017-10-01 01:12:42 +02:00
use_pokeblock.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
walda_phrase.s fix merge conflicts 2017-09-21 10:50:15 +02:00
wallclock.s Finish renaming strings in strings.s 2017-09-20 16:46:59 -05:00
wild_encounter.s decompile metatile behav 2017-09-29 19:03:50 +02:00