gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 6377b7f944b56969533c9be74ba555dd400b31dc parent c9e0abdb6ff54b477e40ea43ef5527d1471ef6c5 Author: Toxa <untoxa@mail.ru> Date: Sun, 10 Sep 2023 14:06:53 +0300 SMS/GG: add R5_SAT_0x1F00 definition for the R5 value controlling SAT position in VRAM, fix fonts cross-platform example Diffstat:
| M | gbdk-lib/examples/cross-platform/fonts/src/fonts.c | 5 | +++++ |
| M | gbdk-lib/include/sms/hardware.h | 1 | + |
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/examples/cross-platform/fonts/src/fonts.c b/gbdk-lib/examples/cross-platform/fonts/src/fonts.c @@ -16,6 +16,11 @@ void main(void) { +#ifdef SEGA + __WRITE_VDP_REG(VDP_R2, R2_MAP_0x3800); + __WRITE_VDP_REG(VDP_R5, R5_SAT_0x3F00); +#endif + font_t ibm_font, italic_font, min_font; int i; diff --git a/gbdk-lib/include/sms/hardware.h b/gbdk-lib/include/sms/hardware.h @@ -102,6 +102,7 @@ extern UBYTE shadow_VDP_R4; extern UBYTE shadow_VDP_R5; #define R5_SAT_0x3F00 0xFF +#define R5_SAT_0x1F00 0xBF #define R5_SAT_MASK 0b10000001 #define VDP_R6 0b10000110
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.