Skip to content
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def B_BOOTUP_B_AGB equ 0
def B_BOOTUP_B_AGB equ 0 ; 0 = CGB, 1 = AGB

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
Comment thread
Rangi42 marked this conversation as resolved.
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
; These values should not be relied upon; see
; Warning: these values should not be relied upon; see

; https://gbdev.io/pandocs/Power_Up_Sequence.html#cgbdmg_b
Comment on lines +388 to +389

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
; These values should not be relied upon; see
; https://gbdev.io/pandocs/Power_Up_Sequence.html#cgbdmg_b
; Warning: these values should not be relied upon; see
; https://gbdev.io/pandocs/Power_Up_Sequence.html#cpu-registers

def BOOTUP_B_CGB equ 0 << B_BOOTUP_B_AGB
def BOOTUP_B_AGB equ 1 << B_BOOTUP_B_AGB


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