The z88dk library structure is open to multiple fcntl interfaces.
The actual CPC one is for the tape support:
http://www.z88dk.org/wiki/doku.php/plat ... cpc_target
Does anybody have stuff for disk interfaces ?
"fcntl" libraries for the Amstrad CPC
-Loading a filestefano wrote:Does anybody have stuff for disk interfaces ?
-Saving a file
-Firmware for Cas/Disc
I hope this can help,
Cheers.
It's not a problem in z88dk its a problem/feature in CPC Firmware. Try to load the binary with memory/load/call and it will work differently.norecess wrote:Don't know if it's related, as I said in a previous post I tried to load a file directly with some in-line ASM and I received the system message "Press play on tape". Looks like z88dk sets the system into a special mode at startup.
It seems that when you use run"binary the firmware resets part of its functionality (disable some roms like the amsdos). I solved this program using this method: http://www.cepece.info/amstrad/source/loader.html
You need to store the current drive, and call firmware mc_start_program, kl_rom_walk and then restore current drive, now you can read a file from disk correctly. I have use this without problems.
Cheers.