git.y1.nz

gbdk-2020

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

commit 49fb70a3aede6872b138074fcc08ba815943b2ba
parent c494c5a829eb903ed38d12fc50acc7a3349d0717
Author: Toxa <untoxa@mail.ru>
Date:   Fri, 12 Jun 2026 16:52:20 +0300

GB/SMS/GG/MSX/NES: fix broken hardware.h

Diffstat:
Mgbdk-lib/include/gb/hardware.h4++--
Mgbdk-lib/include/msx/hardware.h4++--
Mgbdk-lib/include/nes/hardware.h1+
Mgbdk-lib/include/sms/hardware.h4++--
4 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/gbdk-lib/include/gb/hardware.h b/gbdk-lib/include/gb/hardware.h @@ -461,6 +461,6 @@ __REG IE_REG; /**< Interrupt enable */ #define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) /**< Width of visible screen in pixels */ #define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) /**< Height of visible screen in pixels */ -typedef uint8_t scroll_x_t; -typedef uint8_t scroll_y_t; +typedef UINT8 scroll_x_t; +typedef UINT8 scroll_y_t; #endif diff --git a/gbdk-lib/include/msx/hardware.h b/gbdk-lib/include/msx/hardware.h @@ -158,6 +158,6 @@ extern volatile UBYTE VDP_ATTR_SHIFT; #define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) #define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) -typedef uint8_t scroll_x_t; -typedef uint8_t scroll_y_t; +typedef UINT8 scroll_x_t; +typedef UINT8 scroll_y_t; #endif diff --git a/gbdk-lib/include/nes/hardware.h b/gbdk-lib/include/nes/hardware.h @@ -6,6 +6,7 @@ #define _HARDWARE_H #include <types.h> +#include <stdint.h> #define __SHADOW_REG extern volatile uint8_t #define __REG(addr) volatile __at (addr) uint8_t diff --git a/gbdk-lib/include/sms/hardware.h b/gbdk-lib/include/sms/hardware.h @@ -285,6 +285,6 @@ extern volatile UBYTE VDP_ATTR_SHIFT; #define DEVICE_SCREEN_PX_WIDTH (DEVICE_SCREEN_WIDTH * 8) #define DEVICE_SCREEN_PX_HEIGHT (DEVICE_SCREEN_HEIGHT * 8) -typedef uint8_t scroll_x_t; -typedef uint8_t scroll_y_t; +typedef UINT8 scroll_x_t; +typedef UINT8 scroll_y_t; #endif

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