git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

commit 290169e07229c6ffde21a0943fa3c5f65e673263
parent e4dae730cdd918a4d70e6e151ec1eab0a99ef8d5
Author: Toxa <untoxa@mail.ru>
Date:   Tue, 24 Aug 2021 15:46:55 +0300

SMS/GG: fix declaration of VDP_ATTR_SHIFT; declare _BIOS: data, initialized by BIOS; declare _SYSTEM: detect PAL/NTSC

Diffstat:
Mgbdk-lib/include/sms/hardware.h8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gbdk-lib/include/sms/hardware.h b/gbdk-lib/include/sms/hardware.h @@ -164,11 +164,15 @@ static volatile UBYTE __at(0xfff8) GLASSES_3D; static volatile UBYTE __at(0xfffd) MAP_FRAME0; static volatile UBYTE __at(0xfffe) MAP_FRAME1; static volatile UBYTE __at(0xffff) MAP_FRAME2; - + +extern const UBYTE _BIOS; + +extern const UBYTE _SYSTEM; + #define SYSTEM_PAL 0x00 #define SYSTEM_NTSC 0x01 -static volatile UBYTE VDP_ATTR_SHIFT; +extern volatile UBYTE VDP_ATTR_SHIFT; #define VDP_SAT_TERM 0xD0

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.