File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8888 - Added ` rSYS ` alias for ` rKEY0 `
8989 - Added separate bit number and flag constants for each audio channel
9090 - Refactored the ` rev_Check_hardware_inc ` macro
91+ - ** Rev 4.12.0** - 2025-06-06 * (Rangi42)*
92+ - Added ` SCRN_B ` and ` SCRN_V_B ` constants
Original file line number Diff line number Diff line change 2222; Define the include guard and the current hardware.inc version
2323; (do this after the RGBDS version check since the `def` syntax depends on it)
2424def HARDWARE_INC equ 1
25- def HARDWARE_INC_VERSION equs "4.11 .0"
25+ def HARDWARE_INC_VERSION equs "4.12 .0"
2626
2727; Usage: rev_Check_hardware_inc <min_ver>
2828; Examples:
@@ -731,7 +731,7 @@ def rROMB0 equ $2000
731731def rROMB1 equ $ 3000
732732
733733; -- RAMB ($4000-$5FFF) -------------------------------------------------------
734- ; SRAM bank number [wo]
734+ ; SRAM bank number [wo]
735735def rRAMB equ $ 4000
736736
737737; (MBC3-only) Special RAM bank numbers that actually map values into RTCREG
@@ -773,11 +773,13 @@ def SCRN_X equ 160 ; width of screen in pixels
773773def SCRN_Y equ 144 ; height of screen in pixels
774774def SCRN_X_B equ 20 ; width of screen in bytes
775775def SCRN_Y_B equ 18 ; height of screen in bytes
776+ def SCRN_B equ SCRN_X_B * SCRN_Y_B ; size of screen in bytes
776777
777778def SCRN_VX equ 256 ; width of tilemap in pixels
778779def SCRN_VY equ 256 ; height of tilemap in pixels
779780def SCRN_VX_B equ 32 ; width of tilemap in bytes
780781def SCRN_VY_B equ 32 ; height of tilemap in bytes
782+ def SCRN_V_B equ SCRN_VX_B * SCRN_VY_B ; size of tilemap in bytes
781783
782784def TILE_X equ 8 ; width of tile in pixels
783785def TILE_Y equ 8 ; height of tile in pixels
You can’t perform that action at this time.
0 commit comments