diff options
Diffstat (limited to 'constants')
| -rw-r--r-- | constants/gfx_constants.asm | 9 | ||||
| -rw-r--r-- | constants/hardware_constants.asm | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm index ff470ff4..0f2fabd2 100644 --- a/constants/gfx_constants.asm +++ b/constants/gfx_constants.asm @@ -10,9 +10,16 @@ DEF SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels DEF BG_MAP_WIDTH EQU 32 ; tiles DEF BG_MAP_HEIGHT EQU 32 ; tiles +DEF BLOCK_WIDTH EQU 4 ; tiles +DEF BLOCK_HEIGHT EQU BLOCK_WIDTH ; tiles +DEF SCREEN_BLOCK_WIDTH EQU 6 ; blocks +DEF SCREEN_BLOCK_HEIGHT EQU 5 ; blocks +DEF SURROUNDING_WIDTH EQU SCREEN_BLOCK_WIDTH * BLOCK_WIDTH ; tiles +DEF SURROUNDING_HEIGHT EQU SCREEN_BLOCK_HEIGHT * BLOCK_HEIGHT ; tiles + DEF SPRITEBUFFERSIZE EQU 7 * 7 * LEN_1BPP_TILE -; DMGPalToGBCPal +; DMGPalToCGBPal DEF CONVERT_BGP EQU 0 DEF CONVERT_OBP0 EQU 1 DEF CONVERT_OBP1 EQU 2 diff --git a/constants/hardware_constants.asm b/constants/hardware_constants.asm index d1dcdd69..c3a224b3 100644 --- a/constants/hardware_constants.asm +++ b/constants/hardware_constants.asm @@ -1,6 +1,8 @@ -; From http://nocash.emubase.de/pandocs.htm. +; Reference documents: +; https://gbdev.io/pandocs/ +; https://github.com/gbdev/hardware.inc -DEF GBC EQU $11 +DEF CGB EQU $11 ; MBC1 DEF MBC1SRamEnable EQU $0000 |
