CTOOLSQuote from: redrumloa on April 04, 2008, 10:54 PM
Neat! Keep us informed!
Well OK but there is an important piece missing when using x128 and that is the lack of support for maintaining d64 and d81 CP/M diskimages in VICE in general. the c1541 utility just doesn't cut-it! (at least I couldn't get it to work... maybe someone else knows a cryptic secret that I have missed) What you really need for that is ctools:
http://www.clipshop.ca/Aztec/ctools04.zip (http://www.clipshop.ca/Aztec/ctools04.zip)
Before I get into that in more detail, there is another important piece also mssing in my instructions for using CP/M in the x128 emulator. You must always select Settings->Drive Settings->Drive 9 if you are running a second diskimage. In CP/M you probably will want to do exactly that and use a work disk (data disk, scratch disk) in Drive 9 and keep your CP/M boot disk in Drive 8.
Booting with the 1581
(http://www.clipshop.ca/bootvice1.gif)
To get the most out of CP/M in x128 you probably will want to boot with a d81 in drive 8. Whether you do or whether you don't it is also doable to use a d64 in drive 9 no matter what you boot with.
The Boot Disk
(http://www.clipshop.ca/settingvice1.gif)
The Work Disk (Data Disk, Scratch Disk)
(http://www.clipshop.ca/settingvice2.gif)
Using CTOOLS to Make a d64 Demo Disk of our CP/M 80 programsAnd here's how we use ctools to make these little d64's with our code on them (compiled in the comfort of Windows XP if we like... BUT I plan on providing a native mode CP/M 80 Aztec C compiler on a diskimage that will work in x128, in case someone is using vice in some environment that won't run the Aztec-C Messy-DOS-stuff. I suppose they can just set their x128 into warp mode, not even bother with the cross-compiler and do like the c128 cp/m guys did in the old days...)
Anyway... preferring to do things the easy way, here's an example batch file that uses ctools to make the demo disk that I am bundling with Aztec CZ80 soon to be available... very soon...
@echo off
if "%CLIB%" == "" goto END
if exist azsample.d64 del azsample.d64
call cformat -1 azsample.d64
call ctools azsample.d64 p exmpl.com
call ctools azsample.d64 p keybrd.com
call ctools azsample.d64 p ov.com
call ctools azsample.d64 p ov1.ovr
call ctools azsample.d64 p ov2.ovr
call ctools azsample.d64 p find.com
call ctools azsample.d64 p textfile.com
:END
One last thing... with all this talk about drive 8 and drive 9, just remember to type "A:" for drive 8 and "B:" for drive 9 when you are using CP/M and you want to change drives. And oh yes, if you want to cat a file to the crt remember it's "type" followed by the name of the file and not cat like in 'nix.