git.y1.nz

gbdk-2020

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

commit 9dbe8ae91c25a12ed4c47de1c4425c54b53a8d05
parent 7884a373e4cbedbcb2c662d311e627b608c01f44
Author: Toxa <56631470+untoxa@users.noreply.github.com>
Date:   Fri, 22 May 2026 13:56:10 +0300

Merge pull request #897 from michel-iwaniec/add_supports_vram_read_defs

Add new define DEVICE_SUPPORTS_VRAM_READ, to indicate which platforms have support for reading from VRAM
Diffstat:
Mgbdk-lib/include/gb/gb.h4++++
Mgbdk-lib/include/msx/msx.h4++++
Mgbdk-lib/include/nes/nes.h4++++
Mgbdk-lib/include/sms/sms.h4++++
4 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -464,6 +464,10 @@ extern uint8_t _is_GBA; */ #define DEVICE_SUPPORTS_WINDOW (TRUE) +/** Macro returns TRUE if device supports reading from VRAM + */ +#define DEVICE_SUPPORTS_VRAM_READ (TRUE) + /** Global Time Counter in VBL periods (60Hz) Increments once per Frame diff --git a/gbdk-lib/include/msx/msx.h b/gbdk-lib/include/msx/msx.h @@ -330,6 +330,10 @@ void refresh_OAM(void); */ #define DEVICE_SUPPORTS_WINDOW (FALSE) +/** Macro returns TRUE if device supports reading from VRAM + */ +#define DEVICE_SUPPORTS_VRAM_READ (FALSE) + /** Global Time Counter in VBL periods (60Hz) Increments once per Frame diff --git a/gbdk-lib/include/nes/nes.h b/gbdk-lib/include/nes/nes.h @@ -659,6 +659,10 @@ void refresh_OAM(void) NO_OVERLAY_LOCALS; #define DEVICE_SUPPORTS_WINDOW (FALSE) #endif +/** Macro returns TRUE if device supports reading from VRAM + */ +#define DEVICE_SUPPORTS_VRAM_READ (FALSE) + /** * Set byte in vram at given memory location * diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -335,6 +335,10 @@ void refresh_OAM(void); */ #define DEVICE_SUPPORTS_WINDOW (FALSE) +/** Macro returns TRUE if device supports reading from VRAM + */ +#define DEVICE_SUPPORTS_VRAM_READ (FALSE) + /** Global Time Counter in VBL periods (60Hz) Increments once per Frame

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