summaryrefslogtreecommitdiff
path: root/home/map.asm
AgeCommit message (Collapse)Author
2021-12-30Use `MAP_LENGTH` in `GetMapPointer`Rangi
2021-03-04Verify data table sizes with table_width and assert_table_length macrosRangi
This was discussed in #706 It also uncovered some off-by-one issues with defining some constants. A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
2020-12-23Remove "Buffer" suffix from two HRAM labelsRangi
2020-12-23Rename some labelsRangi
- Remove "Buffer" suffix from some byte and word quantities - Change "Ptr" to "Pointer" Fixes #789
2020-11-17Resolve some "???" commentsRangi
2020-11-09Replace $0 with 0 for "ld l, a / ld h, 0" idiomRangi
2020-10-29Updates to more closely sync with pokegoldRangi
2020-10-28Replace many '; unused' with '; unreferenced'Rangi
2020-07-13Disassemble the final English debug ROMRangi
2020-06-22Identify some more labelsRangi
2020-06-21Comment more ROM labels as unreferencedRangi
(Some unreferenced labels are above code which is still used via fallthrough!)
2020-06-21Replace "Unreferenced" labels with "; unreferenced" commentsRangi
2020-04-18Miscellaneous fixes, including one for the Pokédex design flaw by ax6Rangi
2020-04-06hStackBank -> hTempBankRangi
2020-04-06hBuffer -> hStackBank and hFarByteRangi
2020-03-21rgbds supports 'X - 1' instead of 'X + -1'Rangi
2020-02-23Replace some "idiotic", "wtf", "stupid interns" comments with more common ↵Rangi
"useless", "pointless", "could have done X instead"
2020-02-22Small home/ reorganizationmid-kid
Time to move everything out of home.asm: - InexplicablyEmptyFunction was moved to home/map.asm - The wDebugFlags functions and xor_a brothers were moved to home/flag.asm because they're all flag-related. - ret_2f3e was moved into home/region.asm - The register alias sisters were moved to a new file called home/call_regs.asm - IsInArray and SkipNames were joined by AddNTimes from home/math.asm into home/array.asm, as they're all used to index arrays. - CallPointerAt was moved into home/print_text.asm because given the contents of that file it doesn't feel very out of place (that file isn't very aptly named...) - CountSetBits was moved into home/pokedex_flags.asm because it's unique use is counting the amount of seen/caught mon in the podedex. GetWeekday was pulled into this by proximity. Other changes were also made: - PushLYOverrides was moved from home/sprite_anims.asm to home/battle.asm, because it's almost exclusively used for battle animations, with the lone exception being the Magnet Train. - home/copy.asm was renamed to home/gfx.asm, as it's all gfx-related - home/copy2.asm was renamed to home/copy.asm, now it's the only file called copy. - SetHPPal and GetHPPal were moved from home/hp_pals.asm to home/tilemap.asm, as they're attrmap related, like many functions in that file are. - home/rtc.asm was renamed to home/time_palettes.asm, as it had very little to do with the RTC at all, all RTC functions being in home/time.asm - home/handshake.asm was renamed to home/printer.asm. - home/mon_data_2.asm was renamed to home/mon_party.asm.
2020-02-13Remove FarCall prefix from SwapTextboxPalettes and ScrollBGMapPalettesmid-kid
No prefix for the farcall, prefix with an underscore for the farcalled. This matches what is done for pretty much every other home function.
2020-01-04Merge pull request #660 from mid-kid/masterRangi
Make the map setup commands match the actual function names better
2019-12-03Update some labelsRangi
2019-11-18Make the map setup commands match the actual function names bettermid-kid
These functions used as map setup commands are used in other places, too, so I can't prefix them under the same. The names should match except I won't repeat "map" in a map setup command name.
2019-11-03Rename OBJECT_LENGTH to MAPOBJECT_LENGTH and OBJECT_STRUCT_LENGTH to ↵Rangi
OBJECT_LENGTH
2019-10-21Fix some mobile script and map sign thingsmid-kid
2019-10-20#641 fixes and additions. (#646)mid-kid
Name a lot of text labels according to our conventions
2019-06-09Fix overworld scrolling function namesmid-kid
2019-04-19Identify some more WRAM labelsRangi
2019-04-09TextBox -> Textboxmid-kid
Homogenizing names.
2019-04-08Identify and eliminate wEngineBuffer1-5Rangi
2019-03-03Define constants for map event sizesRangi
2019-03-03Identify more collision-related constants and dataRangi
2019-01-30wc7e8 -> wUnusedC7E8 (similar to wUnusedD102)Rangi
2019-01-24Keep "paragraphs" of related code togetherRangi
2018-11-18Resolve issue #575: Rename text commandsRangi
2018-11-05text_jump → text_farmid-kid
The previous name for this was rather misleading. It isn't an actual jump like you'd expect the `jp` instruction to behave as. Instead, it behaves more like a `farcall`. This also makes it consistent with its current command ID name of `TX_FAR`.
2018-09-09Remove redundant commentsRangi
2018-09-09Curr -> CurRangi
2018-08-25Use labels instead of constants for HRAMRangi
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
2018-07-04Miscellaneous reorganization fixesRangi
2018-06-28Add more collision nybble constantsRangi
2018-06-25No space between labels and bodiesRangi
2018-06-25Remove even more address commentsmid-kid
That should be all of them this time
2018-06-24Remove all address commentsmid-kid
2018-04-04Use constants for screen size in metatilesRangi
2018-03-19Relabel some map-related WRAMRangi
wMisc -> {wSurroundingTiles, wBoxPartialData, wLink_c608} wOverworldMap -> {wOverworldMapBlocks, wHallOfFamePokemonList}
2018-02-03Merge branch 'master' of https://github.com/pret/pokecrystalRangi
# Conflicts: # audio/engine.asm # constants/gfx_constants.asm # constants/map_data_constants.asm # constants/pokemon_data_constants.asm # constants/sprite_constants.asm # constants/wram_constants.asm # data/maps/data.asm # engine/battle/ai/scoring.asm # engine/battle/core.asm # engine/battle/effect_commands.asm # engine/battle/misc.asm # engine/battle_anims/getpokeballwobble.asm # engine/breeding.asm # engine/buy_sell_toss.asm # engine/decorations.asm # engine/events/battle_tower/battle_tower.asm # engine/events/battle_tower/rules.asm # engine/events/buena.asm # engine/events/bug_contest/contest_2.asm # engine/events/daycare.asm # engine/events/dratini.asm # engine/events/halloffame.asm # engine/events/happiness_egg.asm # engine/events/kurt.asm # engine/events/lucky_number.asm # engine/events/magnet_train.asm # engine/events/overworld.asm # engine/events/pokerus/pokerus.asm # engine/events/print_unown.asm # engine/events/print_unown_2.asm # engine/events/unown_walls.asm # engine/item_effects.asm # engine/link.asm # engine/mon_menu.asm # engine/player_object.asm # engine/routines/playslowcry.asm # engine/scripting.asm # engine/search.asm # engine/search2.asm # engine/specials.asm # engine/start_menu.asm # engine/timeset.asm # home/battle_vars.asm # home/map.asm # maps/GoldenrodUndergroundSwitchRoomEntrances.asm # maps/IlexForest.asm # maps/KrissHouse2F.asm # maps/Route39Barn.asm # mobile/mobile_12_2.asm # mobile/mobile_40.asm # mobile/mobile_5f.asm # wram.asm
2018-02-03map → map_id; map_def → map; map_data → map_attributesRangi
2018-01-24Remove Special_ prefix from special routines (close #478)Rangi
2018-01-23Prefix wram labels with w, part 2.luckytyphlosion
2018-01-23MenuDataHeader → MenuHeader, MenuData2 → MenuData (might complete issue ↵Rangi
#440)