-
Notifications
You must be signed in to change notification settings - Fork 21
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
Register ordering, byte-based sizes, OAM additions, general cleanup #4
Conversation
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.
Positive:
- I really like the ordering of the registers, especially as they're naturally grouped (are there exceptions? I'm not aware of any)
- I also like the new constants. That said,
CPU_CGB
could be renamed to something more explicit?BOOTUP_CGB
, maybe?
Negative:
- The
oXX
change is useless imo, because it's strictly equivalent toLOW(rXX)
.
Neutral:
_HW
. Also I'd rather have called it_IO
Unrelated:
- What about adding byte constants for ROM and SRAM sizes? Everyone uses bytes nowadays.
- Add more memory map convenience equ's - Add rSMBK which makes more sense (to me) than rSVBK - Revert the 'o' equ's - Rename the bootup CPU values - Changed to kilobyte-based size equ's
I have a local change (not committed yet) related to the bootup values:
Thoughts on including this in the PR? Thoughts in general? |
I've included them (plus OAM changes) in the PR for commenting there. |
Bump :) |
Suggestion: |
hardware.inc
Outdated
@@ -739,7 +739,7 @@ BOOTUP_A_MGB EQU $FF ; Mini GameBoy (Pocket GameBoy) | |||
; if a=BOOTUP_A_CGB, bit 0 in b can be checked to determine if real CGB or | |||
; other system running in GBC mode | |||
BOOTUP_B_CGB EQU %00000000 | |||
BOOTUP_B_OTHER EQU %00000001 ; GBA, GBA SP, Game Boy Player, or New GBA SP | |||
BOOTUP_B_AGB EQU %00000001 ; AGB, AGB SP, Game Boy Player, or New AGB SP |
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.
Either "GBA SP" or "AGS", but pick one :p
Wow, this went a long way. I like the changes. Thank you for sticking with this, @BlitterObjectBob and @ISSOtm ! |
I'm not a fan of the 'o'-named register EQUs (for offset), but couldn't think of anything else.