From c1ef7b75972fa4fbdf125bc85cc1a66f358151cd Mon Sep 17 00:00:00 2001 From: vulcandth Date: Mon, 6 Jun 2022 16:25:34 -0500 Subject: RGBDS syntax updates (#86) New MACRO and DEF syntax --- constants/palette_constants.asm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'constants/palette_constants.asm') diff --git a/constants/palette_constants.asm b/constants/palette_constants.asm index 0fb63b74..d7a93722 100644 --- a/constants/palette_constants.asm +++ b/constants/palette_constants.asm @@ -4,12 +4,12 @@ const SHADE_LIGHT ; %01 const SHADE_DARK ; %10 const SHADE_BLACK ; %11 -NUM_PAL_COLORS EQU const_value +DEF NUM_PAL_COLORS EQU const_value -PAL_COLOR_SIZE EQU 2 -PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE +DEF PAL_COLOR_SIZE EQU 2 +DEF PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE -NUM_ACTIVE_PALS EQU 4 +DEF NUM_ACTIVE_PALS EQU 4 ; pal/blk packets ; SetPalFunctions indexes (see engine/gfx/palettes.asm) @@ -29,8 +29,8 @@ NUM_ACTIVE_PALS EQU 4 const SET_PAL_GAME_FREAK_INTRO ; $0C const SET_PAL_TRAINER_CARD ; $0D -SET_PAL_PARTY_MENU_HP_BARS EQU $fc -SET_PAL_DEFAULT EQU $ff +DEF SET_PAL_PARTY_MENU_HP_BARS EQU $fc +DEF SET_PAL_DEFAULT EQU $ff ; sgb palettes ; SuperPalettes indexes (see data/sgb/sgb_palettes.asm) @@ -75,4 +75,4 @@ SET_PAL_DEFAULT EQU $ff const PAL_25 ; $25 const PAL_26 ; $26 const PAL_27 ; $27 -NUM_SGB_PALS EQU const_value +DEF NUM_SGB_PALS EQU const_value -- cgit v1.3.1-sl0p