-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding bank14, good chunk of text transcribed and labelled in bank0d, renaming farcall to callab, and much more #112
Conversation
Sporadic constantifying and function naming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obviously there is still much work to do; and there could still be improvements/fixes with what you did here... but if you fix these few minor things, I think its fine to merge. We can continue to fix/improve in future PR's.
ram/wram.asm
Outdated
wccc0:: ds 1 | ||
wccc1:: ds 1 | ||
wFXAnimID:: dw | ||
;wccc1:: ds 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't leave labels commented out; just remove them.
constants/menu_constants.asm
Outdated
const MONMENUITEM_FLASH ; 5 | ||
const MONMENUITEM_WHIRLPOOL ; 6 | ||
const MONMENUITEM_BOUNCE ; 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check that the comments line up.
constants/flypoint_constants.asm
Outdated
const FLY_POINT_SILENT_HILL ; 0 | ||
const FLY_POINT_OLD ; 1 | ||
const FLY_POINT_WEST ; 2 | ||
const FLY_POINT_HAITEKU ; 3 | ||
const FLY_POINT_FONTO ; 4 | ||
const FLY_POINT_BAADON ; 5 | ||
const FLY_POINT_NEWTYPE ; 6 | ||
const FLY_POINT_SUGAR ; 7 | ||
const FLY_POINT_BULL_FOREST ; 8 | ||
const FLY_POINT_STAND ; 9 | ||
const FLY_POINT_KANTO ; 10 | ||
const FLY_POINT_PRINCE ; 11 | ||
const FLY_POINT_MT_FUJI ; 12 | ||
const FLY_POINT_SOUTH ; 13 | ||
const FLY_POINT_NORTH ; 14 | ||
|
||
; Unused? | ||
|
||
const FLY_POINT_ROUTE_15 ; 15 | ||
const FLY_POINT_ROUTE_18 ; 16 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index comments should be aligned one space after the longest const name.
constants/pokemon_data_constants.asm
Outdated
; English version: | ||
;DEF MONS_PER_BOX EQU 20 | ||
;DEF NUM_BOXES EQU 14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably just get rid of these lines.
also; unrelated. Some of these can be broken up into their own "files" to match some of the other pret repos.. but i'll do that after merge. |
Forgive me if this is a messy commit, I'm not used to the process of GitHub development.
I've spent the past two weeks or so slaving away at several parts of the SpaceWorld 97 disassembly, with the major changes in no particular order being:
Bank $14: has had all of its functions in shim.sym (mostly relating to the stats screen and party menu) properly decompiled, and many more that happened to be found in between. Text and a few functions are labelled, but most are not. There is still about $dc8 bytes left near the end bank, which I have labelled as "Unknown53274".
Fly Destinations, Landmarks, Spawn Points: Moved into separate data files, and have been constantified where not previously. Spawn Point and Fly Point constants can be merged if they are redundant, since
Fly Point ID
is alwaysSpawn Point ID - 1
.object_struct changes: Removed the
Palette
holdover from final GSC, which caused values fromWalking
toStepType
to all be offset by one, and added placeholder value. Additionally splitRadius
into two bytes,RadiusX
andRadiusY
, to match treatment in code.Band $0d: Labelled several functions and text, transcribed good chunk of text from raw bytes to actual text, and constantified and labelled move grammar.
FarCall name changes: Per issue 69, farcall and its ilk are renamed to match pokered, which is its closest parallel (Port refactorings and formatting from pokered/pokegold/pokecrystal #69)
There might be other minor changes or added labels that I haven't brought up. If there are glaring problems with any of my changes (i.e. naming inconsistencies. I think my "PartyMenuInBattle" functions might be a culprit, oops!), please let me know.