Skip to content

Commit

Permalink
Rephrase "Gameboy" to "Game Boy" (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 authored Sep 19, 2024
1 parent 21ef22d commit d73aa0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# `hardware.inc`
### Gameboy Hardware definitions

### Game Boy Hardware definitions

`hardware.inc` has been the standard include file containing Game Boy hardware definitions for use in [RGBDS](https://rgbds.gbdev.io) projects for over 20 years.

The file was originally created by Jeff Frohwein in 1997, who still hosts [his latest version (2.3)](http://www.devrs.com/gb/files/hardware.zip) on his great [Dev'rs](http://devrs.com) website.
Expand Down
14 changes: 7 additions & 7 deletions hardware.inc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;*
;* Gameboy Hardware definitions
;* Game Boy Hardware definitions
;* https://github.com/gbdev/hardware.inc
;*
;* Based on Jones' hardware.inc
Expand Down Expand Up @@ -70,7 +70,7 @@ MACRO rev_Check_hardware_inc
DEF MIN_VER equs STRRPL("\1", ".", ",")
DEF INTERNAL_CHK equs """MACRO ___internal
IF \\1 != \\4 || \\2 < \\5 || (\\2 == \\5 && \\3 < \\6)
FAIL "Version \\1.\\2.\\3 of 'hardware.inc' is incompatible with requested version \\4.\\5.\\6"
FAIL "Version \\1.\\2.\\3 of 'hardware.inc' is incompatible with requested version \\4.\\5.\\6"
ENDC
\nENDM"""
INTERNAL_CHK
Expand Down Expand Up @@ -916,8 +916,8 @@ DEF AUDHIGH_LENGTH_OFF EQU %00000000
;***************************************************************************

DEF BOOTUP_A_DMG EQU $01 ; Dot Matrix Game
DEF BOOTUP_A_CGB EQU $11 ; Color GameBoy
DEF BOOTUP_A_MGB EQU $FF ; Mini GameBoy (Pocket GameBoy)
DEF BOOTUP_A_CGB EQU $11 ; Color Game Boy
DEF BOOTUP_A_MGB EQU $FF ; Mini Game Boy (Pocket Game Boy)

; if a=BOOTUP_A_CGB, bit 0 in b can be checked to determine if real CGB or
; other system running in GBC mode
Expand Down Expand Up @@ -946,20 +946,20 @@ DEF INT_HANDLER_JOYPAD EQU $0060

;*
;* Nintendo scrolling logo
;* (Code won't work on a real GameBoy)
;* (Code won't work on a real Game Boy)
;* (if next lines are altered.)
MACRO NINTENDO_LOGO
DB $CE,$ED,$66,$66,$CC,$0D,$00,$0B,$03,$73,$00,$83,$00,$0C,$00,$0D
DB $00,$08,$11,$1F,$88,$89,$00,$0E,$DC,$CC,$6E,$E6,$DD,$DD,$D9,$99
DB $BB,$BB,$67,$63,$6E,$0E,$EC,$CC,$DD,$DC,$99,$9F,$BB,$B9,$33,$3E
ENDM

; $0143 Color GameBoy compatibility code
; $0143 Color Game Boy compatibility code
DEF CART_COMPATIBLE_DMG EQU $00
DEF CART_COMPATIBLE_DMG_GBC EQU $80
DEF CART_COMPATIBLE_GBC EQU $C0

; $0146 GameBoy/Super GameBoy indicator
; $0146 Game Boy/Super Game Boy indicator
DEF CART_INDICATOR_GB EQU $00
DEF CART_INDICATOR_SGB EQU $03

Expand Down

0 comments on commit d73aa0d

Please sign in to comment.