I've been tinkering with the Virtual II emulator for OSX, and noticed
it emulates a Z80 card. I've acquired a CP/M boot disk image, and
tried creating a disk image with ADFS, but when I launch Turbo.com it
gives me a "Bdos Err On P: Select".
I've spent too long on this. Anyone have a set of disk images for
Turbo Pascal 3 for CP/M for use with an Apple emulator?
I also use Virtual ][ for OS/X. Very nice, worth every cent. I wrote
my own CP/M Z80 program. The only way I was able to get it onto a CP/
M disk image was to use Chameleon (http://www.cpm8680.com/applecpm/
chameleon.zip). First I used AppleCommander to get it onto a DOS 3.3
disk image as a BIN file, then I booted up Chameleon to copy it to a
CP/M disk image. Chameleon includes blank 140KB CP/M disk images.
Good luck.
I can't say what works on OS-X, but here's how I do it on a PC.
I. For individual files, say in a .ZIP archive, I use CiderPress and
import the, as is as type $F2 (NON) onto a large ProDOS pseudo hard
disk volume.
From there I use Chameleon to move them to a CP/M disk.
a) chameleon does not recognize ProDos hard disks unless you go to the
utility menu and force the disk type to pro-dos.
b) make sure that the CP/M disk you are copying onto is bootable in
tthe CP/M you are using, especially if that disk is in A:.
c) select Soroc IQ-120 as the terminal.
This has worked for me in using program files from the CP/M retro-
archive.
II. For disk images, try the Asimov archive or one of its mirrors or
one of the archive mirrors it contains.
Cider Press will not copy TO a CP/M disk, so use Chameleon or
Universal File Converter from a ProDOS volume.
For CP/M to CP/M there is PIP under CP/M. Be sure to use [O] for
binary files that are not named .COM, otherwise the first ctrl-z will
act as an EOF. Again copy to a bootable floppy image apropriate for
your emulator. Its easier than putting your floppy in A: by mistake
and booting it to discover - crash - no OS!
Methods 1 and 2 avoid having to worry about the starting address and
length prefixes added to the start of a file by DOS 3.3.
So I gave this a shot. I have TP3 on a CP/M disk, however it does not
work very well. Apparently the CP/M equivalent of curses does not
work with Apple CP/M (i.e. screen does not look right). If I use
myz80 under DOSBox to run TP3 it looks usable.
I am very new to CP/M (about a week). Perhaps there is a setting or
variable that needs to be set. I have to imagine that there are full
screen CP/M apps that work with the Z80 card.
Ok, I found the docs, ran TINST used option 4 for the terminal. Got
no highlighting. The editor requires the CTRL-K work, but I end up
with a [. The rest of the CTRL seq appear to work in the editor.
Kinda of a show stopper unless you want CLI mode. I'd recommend that
you use myz80 in DOSBox, build your Z80 CP/M programs there and test,
then xfer to Apple Z80 to run (if you like).
I posted a TP 3.01A Apple disk image here: http://sense.net/~egan/CPM_tpas301a.dsk
if you want to give it a shot. After you run TINST (perhaps one of
the other terminals will work better), you can delete TINST*.
Docs: http://electrickery.xs4all.nl/comp/tp30/doc/info.html
Good luck.
I'm assuming you are using a MS Z80 softcard. One of the features of
its CP/M is a keyboard redefinition table. This has no use on the 2e,
so you need to empty it.
MBASIC CONFIGIO
2 redefine keyboard characters
D delete the 4 entries in the table
Q quit
4 read/write i/o config block
W write
A: (or whatever)
press a key
Q quit
SYSTEM
Also you may find that a warm boot (exiting a program) clears the
screen. See
A nice cheat sheet for CP/M is here http://www.cpm8680.com/CPMPRG.TXT.
Look at the section on patching CP/M.
One other thing to bear in mind is that if you compile to a COM
program under TP, the top of memory gets set to the size of the TPA
(transient program area) on the machine on which it was compiled. IIRC
MyZ80 has a larger TPA than a 44K or 56K or 60K softcard CP/M system.
Unless you set the end address lower before compiling. A second reason
may be if you want to use an external ASM program. TP has inline
assembly language. The calling convention for INLINE is different then
that for EXTERNAL.
hth
Otherwise MyZ80 is a very nice emulator. Since your floppy disks are
emulated, they can be much larger than an Apple 5 1/4" floppy. IIRC it
also has simple IMPORT and EXPORT of files from MS-DOS.
--- Elliot
--- e-mail: epc8 at juno dot com
> Ok, I found the docs, ran TINST used option 4 for the terminal. Got
> no highlighting. The editor requires the CTRL-K work, but I end up
> with a [.
Something in the dim recesses of my memory is telling me that Apple CP/M got
inverse-on and inverse-off bass-ackwards. Been too long to remember specifics
and it may not have been the Softcard that had the issue.
Steve
It looks like it can be fixed. I may have to collect the codes from
the CONFIGIO program, then instead of taking the defaults with TINST,
edit some of the codes. A lot of work for another day, if I decide
that I care.
Thanks. I just found CONFIGIO via Google.
BTW, here are all the SC Docs: http://www.apple2info.net/hardware/softcard/softcard.htm
I followed the docs, ran CONFIGIO, removed ctrl-k, and was able to
compile and run Hello World. CONFIGIO has to be run on each reboot.
NM the last statement. I forgot to '4' write it out.
Mr. Shack, I have a pair of CP/M disks for Virtual ][ in //e mode
ready to go if you are interested.
Addition. If you patch CP/M by modifying CPM56.COM under DDT, then use
THAT to patch CP/M, you will have to MBASIC/CONFIGIO all over again!
----- e
Try:
There are two images:
CPM_tpas301a_56K.dsk
CPM_tpas301a_63K_iie.dsk
Both are bootable. The first has CP/M 2.20B, the later has 2.23B.
Both have had TINST run with the terminal setup for Apple CP/M (option
#21) and the MHz set to 4 (My emulator allows 2 or 4 MHz Z80 cards).
I left TINST on the 1st disk. The 2nd disk had MBASIC CONFIGIO run
and all the special keystrokes removed so that Ctrl-K works on the
iie. I did not do that with the first disk. You will probably have
problems using the editor on the 1st disk, so I'd use the 2nd disk.
Just boot it, type TURBO and go.
Good luck.