gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit c82b0732a147c6226ffdb7116ca1a83ab93f665a parent 720b257a13618e1b3b74c6dacc1656059e69e29f Author: Toxa <untoxa@mail.ru> Date: Wed, 27 Mar 2024 00:16:59 +0300 define S_BANK tile attribute for the Game Boy (CGB) and the SMS/GG Diffstat:
| M | gbdk-lib/include/gb/gb.h | 5 | +++++ |
| M | gbdk-lib/include/sms/sms.h | 5 | ++++- |
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gbdk-lib/include/gb/gb.h b/gbdk-lib/include/gb/gb.h @@ -73,6 +73,11 @@ */ #define M_NO_INTERP 0x08U +/** If this bit set clear, the tile from the second + VRAM bank is used + @see set_sprite_prop() +*/ +#define S_BANK 0x08U /** If this is set, sprite colours come from OBJ1PAL. Else they come from OBJ0PAL @see set_sprite_prop(). diff --git a/gbdk-lib/include/sms/sms.h b/gbdk-lib/include/sms/sms.h @@ -77,6 +77,9 @@ */ #define M_NO_INTERP 0x08U +/** The nineth bit of the tile id +*/ +#define S_BANK 0x01U /** If set the background tile will be flipped horizontally. */ #define S_FLIPX 0x02U @@ -323,7 +326,7 @@ void refresh_OAM(void); extern volatile uint16_t sys_time; -/** Return R register for the DIV_REG emulation +/** Return R register for the DIV_REG emulation Increments once per CPU instruction (fetches the Z80 CPU R register)
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.