10 Commits

Author SHA1 Message Date
Toxa
74cfc853da fix escaping % symbol in printf and sprintf 2025-06-08 21:21:21 +03:00
Toxa
1c4a6e16ed LIBRARY: change calling convention for printf()/sprintf() 2023-11-15 16:29:13 +03:00
MichelIwaniec
983766b21c Add mos6502.lib build for GBDK installation
* Add assembly support routines from sdcc-svn/sdcc/device/lib/mos6502/ to gbdk-lib/libc/asm/mos6502/
* Add gbdk-lib/libc/asm/mos6502/Makefile, based on corresponding sm83 / z80 Makefiles
* Add CPU-specific include files to gbdk-lib/include/asm/mos6502/, based on corresponding sm83 / z80 include files
* Update gbdk-lib/include/asm/sm83/types.h and gbdk-lib/include/asm/z80.types.h to define REENTRANT as no-op
* Update gbdk-lib/include/stdio.h to use REENTRANT keyword for printf and sprintf
* Update gbdk-lib/include/stdlib.h to prevent #if-clause from redefining __reentrant as a no-op
* Update gbdk-lib/include/stdatomic.h to consider mos6502 in #if-clause
* Update gbdk-lib/libc/_divulong.c to consider mos6502 in #if-clause
* Add mos6502 to PORTS in Makefile, gbdk-lib/Makefile.common and gbdk-lib/libc/Makefile
* Update Makefile to include sdas6500 and sdld in sdcc-install rule
2022-06-06 00:38:21 +01:00
Toxa
1e6b5ee2fa cleanup standard library a bit 2022-02-20 00:56:40 +03:00
Toxa
fc7c9b39fd fix printf()/sprintf() for the new SDCC; fix COMPAT_PALETTE() macro for GB 2021-09-22 17:07:41 +03:00
Toxa
582fb3da21 fix definitions for SDCC #12674 2021-09-14 16:12:18 +03:00
Toxa
ab9779f3f5 SMS/GG: basic stdio.h support 2021-08-19 22:12:43 +03:00
Toxa
216a37aaf1 fix library structure (invalid headers were used because of incorrect using of #if directive) 2021-08-18 17:22:01 +03:00
bbbbbr
fdf58994a9 printf: ignore %0 padding and %1-9 width specifier instead of failing to print when they are encountered, support upper case X hex specifier 2021-02-13 22:28:05 -08:00
toxa
72779ff72b sprintf() and printf() are splitted into different objects, so usage of sprintf() does not lead to linking of fonts and other heavy stuff into the rom. very useful for bgb_emu.h 2020-09-15 12:40:48 +03:00