Re: [cc65-devel] Binary loads of overlays on various targets
cc65 - a freeware C compiler for 6502 based systems
Brought to you by:
gpz
|
From: Shawn J. <sje...@sh...> - 2013-05-28 01:02:33
|
The overlaydemo.c and multidemo.c load overlays with open/read. These would use CIO/SIO on the Atari which by default is "fast". You also don't need to have any load address in the file, and if you did, you'd have to write code to handle it yourself. _____ From: Payton Byrd [mailto:pl...@gm...] Sent: Friday, May 24, 2013 7:15 PM To: cc65 Development Subject: [cc65-devel] Binary loads of overlays on various targets I'm writing a large project that uses overlays and also targets multiple platforms (C64, C128, A2, Atari). I already know that the best way to load the overlays on the two Commodores is through the CBM_LOAD command which will allow fast-loaders to load the files. What is the best way to accomplish this on the Apple and Atari platforms? I know I could fread the data to memory, but I'm not sure if that's the right thing to do. As an aside, I have a question concerning overlay files on the Apple and Atari platforms. Do I need to include a load address at the beginning of the files? I'm assuming I do, but don't want to go off the reservation to exclude them unless necessary. Thanks! -- Payton Byrd <http://www.paytonbyrd.com> <http://it.toolbox.com/blogs/paytonbyrd> |