git.y1.nz

gbdk-2020

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

commit dd05ae2c54f34a06a87ff624b530a60f5e8405d6
parent a54a099a56139b289e28c8a3779887b28f612305
Author: Toxa <untoxa@mail.ru>
Date:   Tue, 29 Jul 2025 17:49:02 +0300

Merge branch 'develop' of https://github.com/gbdk-2020/gbdk-2020 into develop

Diffstat:
Mdocs/pages/03_using_gbdk.md2+-
Mdocs/pages/09_migrating_new_versions.md2++
Mgbdk-lib/include/gb/drawing.h6+++---
3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/docs/pages/03_using_gbdk.md b/docs/pages/03_using_gbdk.md @@ -84,7 +84,7 @@ Including @ref stdio.h and using functions such as @ref printf() will use a larg ## Default Interrupt Service Handlers (ISRs) - V-Blank: A default V-Blank ISR is installed on startup which copies the Shadow OAM to the hardware OAM and increments the global @ref sys_time variable once per frame. - Serial Link I/O: If any of the GBDK serial link functions are used such as @ref send_byte() and @ref receive_byte(), the default SIO serial link handler will be installed automatically at compile-time. - - APA Graphics Mode: When this mode is used (via @ref drawing.h) custom VBL and LCD ISRs handlers will be installed (`drawing_vbl` and `drawing_lcd`). Changing the mode to (`mode(M_TEXT_OUT);`) will cause them to be de-installed. These handlers are used to change the tile data source at start-of-frame and mid-frame so that 384 background tiles can be used instead of the typical 256. + - APA Graphics Mode: When this mode is used (via @ref drawing.h) a custom LCD ISR handler will be installed (`drawing_lcd`). Changing the mode to (`mode(M_TEXT_OUT);`) will cause them to be de-installed. These handlers are used to change the tile data source at start-of-frame and mid-frame so that 384 background tiles can be used instead of the typical 256. ## Ensuring Safe Access to Graphics Memory diff --git a/docs/pages/09_migrating_new_versions.md b/docs/pages/09_migrating_new_versions.md @@ -16,6 +16,8 @@ This section contains information that may be useful to know or important when u - Added @ref utility_makenes "makenes" utility for finalizing NES rom headers (called automatically by @ref lcc) - SMS/GG - Changed from unsigned (`uint16_t`) to signed int16 (`int16_t`) for coordinates with the family of `...metasprite...()` functions + - Changed screen map to be at `0x1800` instead of `0x3800` + - To switch to the older configuration use `__WRITE_VDP_REG_UNSAFE(VDP_R2, R2_MAP_0x3800);` and `__WRITE_VDP_REG_UNSAFE(VDP_R5, R5_SAT_0x3F00);` near the start of main - SDCC - Changed to using the `-N` flag with sdas since the the `-n` flag was removed - Changed @ref lcc to use `--no-optsdcc-in-asm` for building user programs and the GBDK library diff --git a/gbdk-lib/include/gb/drawing.h b/gbdk-lib/include/gb/drawing.h @@ -8,9 +8,9 @@ Note: The standard text printf() and putchar() cannot be used in APA mode - use gprintf() and wrtchr() instead. - Note: Using drawing.h will cause it's custom VBL and LCD ISRs - (`drawing_vbl` and `drawing_lcd`) to be installed. Changing - the mode (`mode(M_TEXT_OUT);`) will cause them to be de-installed. + Note: Using drawing.h will cause it's custom LCD ISR + (`drawing_lcd`) to be installed. Changing the mode + (`mode(M_TEXT_OUT);`) will cause them to be de-installed. The valid coordinate ranges are from (x,y) 0,0 to 159,143. There is no built-in clipping, so drawing outside valid

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