-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep color specific code for upgrade to rgbds v0.7.0 (#27)
* update color/wram.asm * update color/color.asm * use const_def in color/data/map_palette_constants.asm * update macros/color.asm * final changes
- Loading branch information
1 parent
e505a56
commit 8baf17a
Showing
6 changed files
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
W2_BgPaletteData EQU $d000 | ||
W2_SprPaletteData EQU $d040 | ||
DEF W2_BgPaletteData EQU $d000 | ||
DEF W2_SprPaletteData EQU $d040 | ||
|
||
W2_LastBGP EQU $d080 | ||
W2_LastOBP0 EQU $d081 | ||
W2_LastOBP1 EQU $d082 | ||
DEF W2_LastBGP EQU $d080 | ||
DEF W2_LastOBP0 EQU $d081 | ||
DEF W2_LastOBP1 EQU $d082 | ||
|
||
; If W2_TileBasedPalettes is set, each number corresponds to a tile. (takes $180 bytes) | ||
; Otherwise this is a 20x18 map of palettes. (takes $168 bytes) | ||
W2_TilesetPaletteMap EQU $d200 | ||
DEF W2_TilesetPaletteMap EQU $d200 | ||
|
||
; Each number here corresponds to a tile, but this isn't used for | ||
; overworld sprites. I've got a better system for that. | ||
W2_SpritePaletteMap EQU $d400 | ||
DEF W2_SpritePaletteMap EQU $d400 | ||
|
||
; Palette calculations for wTileMap are stored here before vblank. | ||
W2_ScreenPalettesBuffer EQU $d500 ; 32x6 bytes (DMA-able), $d500-$d5c0 | ||
DEF W2_ScreenPalettesBuffer EQU $d500 ; 32x6 bytes (DMA-able), $d500-$d5c0 | ||
|
||
W2_TownMapLoaded EQU $d700 | ||
W2_TileBasedPalettes EQU $d701 | ||
W2_StaticPaletteMapChanged EQU $d702 ; Set to a number >=3 if palette map is modified, since the window is drawn in thirds. Only for when TileBasedPalettes == 0. | ||
W2_UseOBP1 EQU $d703 ; If set, sprite palettes 4-7 use OBP1 instead of OBP0 | ||
DEF W2_TownMapLoaded EQU $d700 | ||
DEF W2_TileBasedPalettes EQU $d701 | ||
DEF W2_StaticPaletteMapChanged EQU $d702 ; Set to a number >=3 if palette map is modified, since the window is drawn in thirds. Only for when TileBasedPalettes == 0. | ||
DEF W2_UseOBP1 EQU $d703 ; If set, sprite palettes 4-7 use OBP1 instead of OBP0 | ||
|
||
; These are like W2_BgPaletteData/SprPaletteData, but they account for BGP/OBP0/OBP1. | ||
W2_BgPaletteDataBuffer EQU $d704 | ||
W2_SprPaletteDataBuffer EQU $d744 | ||
DEF W2_BgPaletteDataBuffer EQU $d704 | ||
DEF W2_SprPaletteDataBuffer EQU $d744 | ||
|
||
W2_BgPaletteDataModified EQU $d784 | ||
W2_SprPaletteDataModified EQU $d785 | ||
DEF W2_BgPaletteDataModified EQU $d784 | ||
DEF W2_SprPaletteDataModified EQU $d785 | ||
|
||
; Analagous to StaticPaletteMapChanged, but only used between Pre-vblank and | ||
; actual-vblank routines. | ||
W2_StaticPaletteMapChanged_vbl EQU $d786 | ||
DEF W2_StaticPaletteMapChanged_vbl EQU $d786 | ||
|
||
; Former value of [hAutoBGTransferDest + 1]. Should be $98 or $9c. | ||
W2_LastAutoCopyDest EQU $d787 | ||
DEF W2_LastAutoCopyDest EQU $d787 | ||
|
||
W2_ForceBGPUpdate EQU $d788 | ||
W2_ForceOBPUpdate EQU $d789 | ||
DEF W2_ForceBGPUpdate EQU $d788 | ||
DEF W2_ForceOBPUpdate EQU $d789 | ||
|
||
; Set to 0 when vblank has updated W2_PreVBlankWindowPortion. Used to make sure that the | ||
; pre-vblank routines are in sync with the vblank routines. | ||
W2_UpdatedWindowPortion EQU $d78a | ||
DEF W2_UpdatedWindowPortion EQU $d78a | ||
|
||
; Set if a row or column on the map was drawn during the current vblank. | ||
W2_DrewRowOrColumn EQU $d78b | ||
DEF W2_DrewRowOrColumn EQU $d78b | ||
|
||
; Palette of the current pokemon (remembered here so pokemon have correct palette when | ||
; transformed) | ||
W2_BattleMonPalette EQU $d78c | ||
DEF W2_BattleMonPalette EQU $d78c | ||
|
||
; Used by "WindowTransferBgRowsAndColors" function. Analagous to H_VBCOPYBGNUMROWS. | ||
W2_VBCOPYBGNUMROWS EQU $d78d | ||
DEF W2_VBCOPYBGNUMROWS EQU $d78d | ||
|
||
; In bank 1, the stack starts at $dfff. So, that's also the stack here when bank 2 is | ||
; loaded. Don't use anything too close to there. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
GEN_2_GRAPHICS EQU 1 | ||
DEF GEN_2_GRAPHICS EQU 1 | ||
|
||
INCLUDE "macros/asserts.asm" | ||
INCLUDE "macros/const.asm" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters