Skip to content

Commit 5dcb175

Browse files
committed
Add constants for color shades
1 parent ad04dce commit 5dcb175

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

HISTORY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,6 @@
104104
- Added `PAD_*` constants for combined button and Control Pad masks
105105
- Added `B_COLOR_*` red/green/blue bit numbers
106106
- Corrected comments on `B_BG_PRIO` and `B_OAM_PRIO`
107-
- **Rev 6.0.0** - 2025-06-30 *(Rangi42)*
107+
- **Rev 6.0.0** - 2025-07-03 *(Rangi42)*
108108
- Changed `_AUD3WAVERAM` to `AUD3WAVERAM`
109+
- Added `SHADE_*` constants for grayscale shades

hardware.inc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,12 @@ def COLOR_SIZE equ 2 ; size of color in bytes (little-endian BGR555)
941941
def PAL_COLORS equ 4 ; colors per palette
942942
def PAL_SIZE equ COLOR_SIZE * PAL_COLORS ; size of palette in bytes
943943

944+
; (DMG only) grayscale shade indexes for BGP, OBP0, and OBP1
945+
def SHADE_WHITE equ %00
946+
def SHADE_LIGHT equ %01
947+
def SHADE_DARK equ %10
948+
def SHADE_BLACK equ %11
949+
944950
; Tilemaps the BG or Window can read from (controlled by LCDC)
945951
def TILEMAP0 equ $9800 ; $9800-$9BFF
946952
def TILEMAP1 equ $9C00 ; $9C00-$9FFF

0 commit comments

Comments
 (0)