Skip to content

Commit c5a09ff

Browse files
authored
Deprecate VRAM address constants (#18)
1 parent 0a480a6 commit c5a09ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hardware.inc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
;* Rev 4.0 - 03-May-21 : Updated to use RGBDS 0.5.0 syntax, changed IEF_LCDC to IEF_STAT (Eievui)
2929
;* Rev 4.1 - 16-Aug-21 : Added more flags, bit number defines, and offset constants for OAM and window positions (rondnelson99)
3030
;* Rev 4.2 - 04-Sep-21 : Added CH3- and CH4-specific audio registers flags (ISSOtm)
31+
;* Rev 4.3 - 07-Nov-21 : Deprecate VRAM address constants (Eievui)
3132

3233
IF __RGBDS_MAJOR__ == 0 && __RGBDS_MINOR__ < 5
3334
FAIL "This version of 'hardware.inc' requires RGBDS version 0.5.0 or later."
@@ -47,9 +48,6 @@ MACRO rev_Check_hardware_inc
4748
ENDM
4849

4950
DEF _VRAM EQU $8000 ; $8000->$9FFF
50-
DEF _VRAM8000 EQU _VRAM
51-
DEF _VRAM8800 EQU _VRAM+$800
52-
DEF _VRAM9000 EQU _VRAM+$1000
5351
DEF _SCRN0 EQU $9800 ; $9800->$9BFF
5452
DEF _SCRN1 EQU $9C00 ; $9C00->$9FFF
5553
DEF _SRAM EQU $A000 ; $A000->$BFFF
@@ -955,5 +953,8 @@ ENDM
955953
; Deprecated constants. Please avoid using.
956954

957955
DEF IEF_LCDC EQU %00000010 ; LCDC (see STAT)
956+
DEF _VRAM8000 EQU _VRAM
957+
DEF _VRAM8800 EQU _VRAM+$800
958+
DEF _VRAM9000 EQU _VRAM+$1000
958959

959960
ENDC ;HARDWARE_INC

0 commit comments

Comments
 (0)