git.y1.nz

gbdk-2020

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

commit 08bcc9fce5118903337196994c585abce26c8f87
parent efba0aff9bf8fd61be1c76d364f9a3e65691154b
Author: Toxa <untoxa@mail.ru>
Date:   Sun, 19 Sep 2021 00:53:59 +0300

remove SDCC_z80 definition (defined by sdcc for z80), removed GBDK definition (not used), in _divulong.c use __SDCC_STACK_AUTO, __SDCC_z80, __SDCC_gbz80 defined by SDCC itself

Diffstat:
Mgbdk-lib/Makefile.common4++--
Mgbdk-lib/libc/_divulong.c2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gbdk-lib/Makefile.common b/gbdk-lib/Makefile.common @@ -32,8 +32,8 @@ endif CLEANSPEC = *.o *.cdb *.sym *.lst *~ *.asm -CFLAGS = -I$(TOPDIR)/include -DSDCC_z80 -D__PORT_$(PORT) -D__TARGET_$(THIS) -CFLAGS += -m$(PORT) -DGBDK=1 +CFLAGS = -I$(TOPDIR)/include -D__PORT_$(PORT) -D__TARGET_$(THIS) +CFLAGS += -m$(PORT) CFLAGS += --max-allocs-per-node 50000 CFLAGS += --fsigned-char CC = $(SCC) diff --git a/gbdk-lib/libc/_divulong.c b/gbdk-lib/libc/_divulong.c @@ -322,7 +322,7 @@ _divulong (unsigned long a, unsigned long b) { unsigned long reste = 0L; unsigned char count = 32; - #if defined(SDCC_STACK_AUTO) || defined(SDCC_z80) + #if defined(__SDCC_STACK_AUTO) || defined(__SDCC_z80) || defined(__SDCC_gbz80) char c; #else bit c;

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