I'm trying to use zxn_addr_from_mmu() in zxn.h but get the following errors:
SCCZ80: Error at file 'test.c' line XXX: symbol 'zxn_addr_from_mmu' not defined.
SDCC: Error at file 'test.c' line XXX: integer '130' out of range.
Problem with zxn_addr_from_mmu() in zxn.h
The sdcc compile works for me:
zcc +zxn -vn -startup=4 -clib=sdcc_iy -SO3 --max-allocs-per-node200000 zzz.c -o zzz -create-app
sccz80 was broken but I've fixed it now:
https://github.com/z88dk/z88dk/commit/8 ... 8fc8c4014e
zcc +zxn -vn -startup=4 -clib=new zzz.c -o zzz -create-app
Code: Select all
#include <stdio.h>
#include <arch/zxn.h>
void main(void)
{
printf("MMU 6 starts from address 0x%04x\n", zxn_addr_from_mmu(6));
}
sccz80 was broken but I've fixed it now:
https://github.com/z88dk/z88dk/commit/8 ... 8fc8c4014e
zcc +zxn -vn -startup=4 -clib=new zzz.c -o zzz -create-app