First thing I can't solve is that
Code: Select all
defined(__SCCZ80)
Code: Select all
defined(__SCCZ80)
Code: Select all
int main() {
#if defined(__SCCZ80)
#error sccz80 defined
#else
#error not with sccz80
#endif
}
% zcc +test test.c
test.c: line 5: #error sccz80 defined
% zcc +test test.c -compiler=sdcc
test.c:7:2: error: #error not with sccz80
Code: Select all
#if defined(__SDCC) || defined(__SCCZ80)
/* using the new clib */
ioctl(1, IOCTL_OTERM_PAUSE, 0); // do not pause when screen is full
#endif
Code: Select all
zcc +zx -vn -I../include/sccz80 -lndos -l../lib/sccz80/idemodcall test.c -o sccz80_oldclib/test.bin
I'm guessing it's assembler code?Guesser wrote: ↑Wed Feb 10, 2021 2:29 pm I'm getting there now with all the new lib versions apparently working correctly, but now I notice my library is getting compiled into bank 7 for sccz80 classic lib. I vaguely recall having this problem before and the solution for how to tell the linker to put it all in one binary being provided on WoS, but there's no chance of finding the post with the search facilities on that forum now