Skip to content

Commit 8d4432e

Browse files
Rangi42ISSOtm
andauthored
Change the bit number/flag naming conventions (#58)
* Change the bit number/flag naming conventions * Fix whitespace and comments * Add `LCDC_*` flag constants separate from flag values * Deprecate `rSMBK`, moving it into `hardware_compat.inc` * Shorten `PRIORITY` and `WINDOW` to `PRIO` and `WIN` * Add `BGA_*` constants for CGB-only BG tile attributes * Just name them `BG_` not `BGA_`, corresponding to `OAM_` not `OAMA_` * `MASK` is not a conventional suffix Co-authored-by: Eldred Habert <[email protected]>
1 parent 407210a commit 8d4432e

File tree

3 files changed

+954
-527
lines changed

3 files changed

+954
-527
lines changed

HISTORY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,12 @@
9090
- Refactored the `rev_Check_hardware_inc` macro
9191
- **Rev 4.12.0** - 2025-06-06 *(Rangi42)*
9292
- Added `SCRN_B` and `SCRN_V_B` constants
93+
- **Rev 5.0.0** - 2025-06-22 *(Rangi42)*
94+
- Changed bit number naming convention `<REG>B_<NAME>` to `B_<REG>_<NAME>`
95+
- Changed bit flag naming convention `<REG>F_<NAME>` to `<REG>_<NAME>`
96+
- Unabbreviated some names, e.g. `SCRN` to `SCREEN` and `HBL` to `HBLANK`
97+
- Added `LCDC_*` flag constants separate from flag values
98+
- Added `SPD_SINGLE` flag constant
99+
- Added `BG_*` constants for CGB-only BG tile attributes
100+
- Added hardware_compat.inc for backwards-compatibility aliases
101+
- Deprecated `rSMBK` alias for `rWBK`/`rSVBK`

0 commit comments

Comments
 (0)