Commit graph

25 commits

Author SHA1 Message Date
yenatch
d59dfadf66 Add macros for text predefs. 2014-09-17 21:15:11 -07:00
yenatch
3de9d14d3e Recomment misc functions in home.asm. 2014-09-17 21:14:32 -07:00
yenatch
fcfed136c6 Don't define addresses for ROM0 sections in home.asm.
Instead, occupy the space reserved for the rom header so there is no collision.
2014-09-17 20:54:45 -07:00
yenatch
8f49e37b82 Use hram constants for remaining joypad variables. 2014-08-30 19:48:49 -07:00
yenatch
cf399a8c86 Split copy and serial functions out of home.asm. 2014-08-12 00:01:04 -07:00
yenatch
1cf79b6f15 Fix static banks passed into GetName.
This appears to be the only other use of wPredefBank.

Chances are there are more uncaught banks. Known cases are marked as "hardcoded" or similar.
2014-08-07 21:17:44 -07:00
U-Fish-PC\Daniel
bd533aa79b Use *Coord instead of FuncCoord
Using 'Coord =' doesn't like using wTileMap
So use hlCoord, deCoord, bcCoord, aCoord, Coorda, or dwCoord
to avoid static addresses
2014-06-25 16:58:27 -04:00
yenatch
b36f793667 Use macros for predef calls/jumps instead of static ids. 2014-06-16 13:57:26 -07:00
yenatch
35f2bb90d4 Rename predef functions so they aren't excessive in length.
This is mostly because of an rgbasm bug that prevents macro arguments
from exceeding 16 characters, but the names were bad anyway.
2014-06-16 13:03:05 -07:00
yenatch
38ac74f222 Remove generated "indirect jump" comments.
The destination is obvious when using the predef macro.
2014-06-16 11:37:36 -07:00
yenatch
81bbab85ac Hall of Fame sram labels and related constants. 2014-06-14 14:24:35 -07:00
yenatch
53ae0e93fa Use monster struct macros in wram. Rename related labels for consistency. 2014-06-14 04:12:40 -07:00
yenatch
6d8c6055b5 Split more code out of home.asm. 2014-05-31 12:25:34 -07:00
yenatch
d424eb4438 Use rgbasm -h to use halt without nops. 2014-05-31 00:39:09 -07:00
yenatch
f59f03c685 Clean up bg map and palette fade code in home.asm. 2014-05-31 00:35:15 -07:00
yenatch
6d64c3e01d Split the text engine out of home.asm. 2014-05-30 19:52:24 -07:00
yenatch
2317848cc4 Recomment some copy/video functions in home.asm. 2014-05-30 19:42:32 -07:00
yenatch
93b1361dff Split out joypad and overworld code from home.asm. 2014-05-30 18:30:25 -07:00
yenatch
da0a72cdbf Use VRAM constants where applicable. 2014-05-29 01:31:46 -07:00
yenatch
f16f07c5ca More wOAMBuffer references. 2014-05-27 11:08:52 -07:00
yenatch
40c17c906b Remove most static wram addresses. Use labels instead.
For unknown addresses, use "w<address>".

Label overleads are still an issue.
2014-05-26 22:04:39 -07:00
yenatch
4be11293e5 Label BCD math predefs. 2014-05-25 17:27:02 -07:00
yenatch
bba8405992 Rename GetJoypadState -> Joypad. 2014-05-25 11:21:48 -07:00
yenatch
031e33957d Rename joypad registers. 2014-05-25 10:53:09 -07:00
yenatch
1ee8de792b Move bank 0 into home.asm. 2014-05-25 10:26:42 -07:00