Skip to content

Boot-up B register values #75

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions hardware.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1037,10 +1037,9 @@ def BOOTUP_A_MGB equ $FF
def BOOTUP_A_SGB equ BOOTUP_A_DMG
def BOOTUP_A_SGB2 equ BOOTUP_A_MGB

; Register B = CPU qualifier (if A is BOOTUP_A_CGB)
; Register B = CPU qualifier
def BOOTUP_B_DMG0 equ $FF
def B_BOOTUP_B_AGB equ 0
def BOOTUP_B_CGB equ 0 << B_BOOTUP_B_AGB
def BOOTUP_B_AGB equ 1 << B_BOOTUP_B_AGB

; Register C = CPU qualifier
def BOOTUP_C_DMG equ $13
Expand Down
5 changes: 5 additions & 0 deletions hardware_compat.inc
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ def OAM_B equ OAM_SIZE

def BOOTUPB_B_AGB equ B_BOOTUP_B_AGB

; These values should not be relied upon; see
; https://gbdev.io/pandocs/Power_Up_Sequence.html#cgbdmg_b
def BOOTUP_B_CGB equ 0 << B_BOOTUP_B_AGB
def BOOTUP_B_AGB equ 1 << B_BOOTUP_B_AGB


;******************************************************************************
; Aliases
Expand Down
Loading