Open mlund opened 1 year ago
Copying the filename to 0x100 will often work, but be aware that this is by default the stack page, so you may overwrite the stack depending on where the stack pointer is and how long the filename will be.
Thanks! Mega65libc has always been hardcoded to $0100 and I wonder if there are better alternatives, e.g. by dynamic allocation. If I recall correctly the hypervisor has restrictions as to where it can be placed(?).
Subroutines in
fileio.s
overlaps with C functions:mega65_io_enable()
lcopy()
0x0100
could be done directly from C. Is it safe to override0x0100
for temporary storage forsetname
?Using C for the above,
fileio.s
becomes smaller; could be inline; and reduce compiler specific code.Ping @ki-bo.
Notes