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 88
88
- Added ` rSYS ` alias for ` rKEY0 `
89
89
- Added separate bit number and flag constants for each audio channel
90
90
- 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 22
22
; Define the include guard and the current hardware.inc version
23
23
; (do this after the RGBDS version check since the `def` syntax depends on it)
24
24
def HARDWARE_INC equ 1
25
- def HARDWARE_INC_VERSION equs "4.11 .0"
25
+ def HARDWARE_INC_VERSION equs "4.12 .0"
26
26
27
27
; Usage: rev_Check_hardware_inc <min_ver>
28
28
; Examples:
@@ -731,7 +731,7 @@ def rROMB0 equ $2000
731
731
def rROMB1 equ $ 3000
732
732
733
733
; -- RAMB ($4000-$5FFF) -------------------------------------------------------
734
- ; SRAM bank number [wo]
734
+ ; SRAM bank number [wo]
735
735
def rRAMB equ $ 4000
736
736
737
737
; (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
773
773
def SCRN_Y equ 144 ; height of screen in pixels
774
774
def SCRN_X_B equ 20 ; width of screen in bytes
775
775
def 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
776
777
777
778
def SCRN_VX equ 256 ; width of tilemap in pixels
778
779
def SCRN_VY equ 256 ; height of tilemap in pixels
779
780
def SCRN_VX_B equ 32 ; width of tilemap in bytes
780
781
def 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
781
783
782
784
def TILE_X equ 8 ; width of tile in pixels
783
785
def TILE_Y equ 8 ; height of tile in pixels
You can’t perform that action at this time.
0 commit comments