Luckily, a colleague of mine offered me his Apple //c which has 2x5.25" (#6) and 2x3.5" drives (#5); and so I just neeed a program that would be able to transfer the CP/M files from the 5.25" disks to the ProDOS 3.5" (800k) disks, whcih then can be read my my PowerMac and moved over to my Sun SPARC ia TCP/IP. That's the theoretical part.
On with the practical part: the first thing to do is to find a FAQ because many other folks might have had the same problem. But which FAQ? The CP/M FAQ im comp.os.cpm or the comp.sys.apple FAQ or ...?
Ok; I got stuck and send out a request in some newsgroups on August 18 with "Subject: Q> from CP/M to DOS?"
Many folks replied, I was pointed to the FAQs, the repository at asimov.net and a program called CHAMELEON which would do the transfer job. Gerat, I think, that's an easy one...
[BTW: I remember that the PEEKER, a German Apple 2 magazine which has long folded, once offered a contest in writing the shortest conversion program to convert anything from Apple CP/M, UCSD Pascal, DOS3.3 and ProDOS to anything else; maybe someone still has the program which won this contest? Is Uli Stiehl, the editor of PEEKER, online anywhere?]
I take a closer look and find a "stdio.h" in the source directory. Wow! Cretainly a UNIX professional, who created this package... oh, boy. So I delete the "stdio.h" and I get nulib compiled on the Sun without any more tweaks.
[I also tried to download A2dearc.gz from asimov.net which is said to be a Mac utility to unpack .SHK files; I don't know since downloading with Netscape which results in automatic UnStuffing, which doens't give me an executable; I'd suggest to upload A2dearc.hqx to asimov!!]
Ok, it's time for a second article.
From: jh@Germany.EU.net (Joerg Heitkoetter)
Newsgroups: comp.sys.apple2,comp.emulators.apple2
Subject: Sun to Mac to //c and back
Date: 30 Aug 1996 19:44:03 +0200
Organization: EUnet Deutschland GmbH, Research & Development
Folks,
I want to transfer some old textfiles from CP/M on 5.25"
disks to my Sun; so I first have to gather the programs for this
task from the net, as per FAQ:
(1) get CHAMELEON.SHK a progam that is said to be able to read
CP/M disks from ProDOS
(2) get an archiver which can read the CHAMELON.SHK file;
Fine; So I get the CHAMELON.SHK file, and find I need nulib,
for UNIX so I get nulib (from a Linux archive) [which btw is bundled
with a stdio.h (Wow!) and therefore cannot be compiled out of
the box -> THROW the stdio.h away! and it compiles fine...]
I compile nulib and find that my CHAMELON.SHK file contains the
things I want:
jazz(jh): ~/tmp/apple2> nulib v CHAMELEON.SHK
CHAMELEON.SHK Created:01-Jul-91 21:52 Mod:01-Jul-91 21:52 Recs: 2
Name Kind Typ Auxtyp Archived Fmat Size Un-Length
-----------------------------------------------------------------------------
CHAM.SYSTEM File SYS $2000 01-Jul-91 21:52 shk 83% 19516
CHAMELEON.DOC File TXT $0000 01-Jul-91 21:52 shk 54% 27341
(have an eye on the "Typ" section) so I extract the files:
jazz(jh): ~/tmp/apple2> nulib xv CHAMELEON.SHK
Extracting 'CHAM.SYSTEM' (data)...overwriting...unshrinking (I)...done.
Extracting 'CHAMELEON.DOC' (data)...overwriting...unshrinking (I)...done.
Then I start Fetch on my Mac and transfer the files to a ProDOS 720K
disk; great I think and move the disk over to the //c and voila
the disk is readable; but--the files have type $00 not SYS and TXT
as expected; ok I thought, let's bload the files and bsave them with the
appropriate type; but this doesn't seem to work; it's
always WRONG FILE TYPE (load, bload, run, exec, whatever);
So here's the question: How do I change the attribute of a ProDOS
file from $00 to SYS/TXT/whatever? and What's wrong in the above?
--
Have fun, -joke
Boah ey, bei EUnet gib's jetz' den Interschrott Exploder 3.0 für umsonst.
(Wow, EUnet now offers the fine Microsoft Explorer 3.0 for free download.)
Newsgroups: comp.sys.apple2,comp.emulators.apple2
From: skaratso@oucsace.cs.ohiou.edu (Stavros Robert Karatsoridis)
Subject: Re: Sun to Mac to //c and back
Organization: Ohio University C.S. Dept, Athens
Date: Fri, 30 Aug 96 20:52:04 MET DST
[..]
Well, I don't know about the ".DOC" file, which you should be able to read
on the UNIX box or the Mac. As for the other program, here is a work-around:
Get into ProDOS BASIC
Insert the Chameleon disk, and type
PR#3
CATALOG
Look at the catalog, at the ENDFILE column. Write the number you see there
on the line that contains CHAM.SYSTEM
Then type,
CREATE CHAM2.SYSTEM,TSYS
BLOAD CHAM.SYSTEM,TSYS,A$2000
BSAVE CHAM2.SYSTEM,TSYS,A$2000,Lxxxxx (where xxxxx is the number you got from
the ENDFILE part of the catalog.
To run the program, you should be able to type
-CHAM2.SYSTEM
Hope this helps
Stavros
Good idea, Stavros, but it doesn't work. My ProDOS always gets me a FILE TYPE MISMATCH.
From: shack@deimos.frii.com (Randy Shackelford)
Newsgroups: comp.sys.apple2,comp.emulators.apple2
Subject: Re: Sun to Mac to //c and back
Date: Sat, 31 Aug 96 02:40:39 MET DST
Organization: Front Range Internet, Inc, Fort Collins, Colorado
In article <507pv7$s38@darla.visi.com>, Nathan Mates
From: shack@deimos.frii.com (Randy Shackelford)
Newsgroups: comp.sys.apple2,comp.emulators.apple2
Subject: problem solved (Re: Sun to Mac to //c and back)
Date: Sat, 31 Aug 96 03:34:38 MET DST
Organization: Front Range Internet, Inc, Fort Collins, Colorado
I jumped on info-mac to see if there was any app to strip the resource fork
off a file. In the disk directory, I found the very thang. It's the file
ftp://mirrors.aol.com/mir02/INFOMAC/info-mac/disk/file-stripper-utilities.hqx
It has a drag and drop app for stripping the resource fork and another to do
the same for the data fork. There's even one to strip the name resource,
maybe that would cause files copied to DOS disks to not be forked, who knows.
Here's the procedure for getting a Mac downloaded file to work in ProDOS 8:
download it
drag the file's icon onto the resource fork stripper app icon
copy the file to a ProDOS disk
stick the disk in your Apple II
I tested this with a simpletext file, I got Appleworks to open it pretty as
you please.
Just goes to show how much more productive a little resourcefulness is rather
than mindless griping.
--
Randy Shackelford US Air Force officer
shack@frii.com and Apple aficionado
Good point, Randy; resource forks are no problem if all downloads have been done in binary mode; anyway, I fetched: ftp://mirrors.aol.com/mir02/INFOMAC/info-mac/disk/file-attributes.hqx and use it in my solution below.
However, the .bsq extension tells us that we have to convert this file with BINSCII, then we need to UnShrink it, see below.
As for ProDOS, the generic way to change the attribute of a ProDOS program is copied from a reply by Nathan Mates (the very helpful c.s.a2-FAQ maintainer):
With BLOAD and BSAVE, and non-'BIN' filetypes, you must specify the
alternate type. For example, to change a filetype from $00 to SYS, try
the following:
BLOAD FUBAR,T$00,A$1000,Lxxx
CREATE BARFU,TSYS
BSAVE BARFU,TSYS,A$1000,Lxxx
Where 'xxx' is the file length of the file. If you didn't force
binary mode in downloading, the filesize will pribably be different
from what nulib showed. [By the way, the c.s.a2 FAQ has a section on
changing ProDOS filetypes with a program (that you'd have to
download), as well as changing it manuall like above in the
downloading Todd Whitesel's BINSCII.TXT section.]
Now, here comes the fun part: my ProDOS downs't have this byte count (which
anyone else seem to have) I would need for the ",L
And when I try the above I ALWAYS get a "FILE TYPE MISMATCH" error,
AaaarrrgghhhHH!
Interesting chicken & egg problem: I cannot use a BINSCII encoded
program with which I would be able to change the file type of any program,
because I cannot
change the file type of the BISCII.TXT distribution;
And then: if I was able to change the file type of the BINSCII.TXT file, I wouldn't
need BINSCII.TXT since the I could simply change the file type of
CHAM.SYSTEM, are you still with me? ;-)
It's PSYS/pdos; so I unpack the CHAMELEON.SHK archive on my Sun using
nulib and download CHAM.SYSTEM once again with Fetch, and give
PSYS/pdos as type/creator; then I copy the file to the ProDOS disk;
reboot the Apple //c with this disk and voila, chameleon starts up;
I transfer the files to the ProDOS disk (unfortunately you have to do this one
by one), and insert the disk into the Mac. I select all the text files from
the disk and drop them in the Fetch window; then I hurry to the Sun and load
the first file; yeah; we got it made!!!!!
[I also tried to give CHAMELON.DOC a type creator or PTXT/pdos but this
doens't work; I thought that ProDOS TYPES may be P<ProDOS type>, but
that's not the case; for the textfile chose TEXT/pdos and voila...do
the same for BINSCII.TXT, if you have the time...]
Hmm, yes, one caveat: *always* do the conversion on the Mac desktop!
Then copy the file to the ProDOS disk; if you copy anything directly to the
disk, it doesn't work. Only a MacOS-guru will be able to tell us why.
Resource forks are no problem, if all downloads happen in binary mode;
forks are added on ProDOS disks, but they are separated from the files,
just like on PC disks; i.e., they do NOT modify the file content.
Some problems may arise, when you download the files directly to the
ProDOS disk; you have to store the files on the Mac's desktop; THEN
copy the files to the disk; I still don't know why.
I guess that the file type can easily be changed with a sector/disk
editor, since it's stored in the ProDOS directory entry somewhere;
who knows which byte has to be changed?
Would anyone please upload A2dearc.hqx to asimov.net?
Many of the old Apple 2 hackers couldn't go on with Apple but had to get into
other, cheaper platforms. I went on to use an Atari ST, others went PC, et
cetera; well, all this should be (and stay) in the past; peace, folks!
;-)
Maybe, I simply should have asked David Empson? He seems to have answers
for everything, so enjoy...
Available from the same author:
5. To BINSCII or not to BINSCII?
Ok, there is a ProDOS file attribute changing program called fazz.2.3.bsq,
which comes BINSCII encoded; and the BINSCII.TXT file is available from
various FTP servers; so I get it using Netscape and copy it on the ProDOS
disk; funny it has type "$00" which, as we know already, cannot be changed to
anything; I always get a FILE TYPE MISMATCH.
6. Of Creators, Resources Forks and other Crap
Ok; here's what I did. Since the program was transferred to the Mac via Fetch,
and Fetch asks me which type and creator I would like to add, I simply have a
look at the type/creator of the PRODOS/BASIC.SYSTEM file on the ProDOS disk.
7. Unresolved Riddles
Well--I still don't know why my ProDOS' CAT doesn't list the byte count of
a file.
Postlude
My requests seem to have triggered a short Mac/Apple 2 flame in
comp.sys.apple2; this was certainly unintended; we all know, that all the
Apple 2 afficionados were very angry when Apple released the Apple ///, Lisa &
then Macintosh, and it was simply unaffordable for the rest of us.
Aftermath: Dissolving the Riddles
After I posted this little story in the news, I received answers
from Paul, Richard Der and John D. Baker. All telling me that
CAT and CATALOG produce different listings under ProDOS!
Which solved Riddle #1.
Date: Sun, 1 Sep 96 09:55:05 PDT
From: rder@pro-palmtree.cts.com (Richard Der)
To: Joerg.Heitkoetter@Germany.EU.net
Cc: comp.sys.apple2-news@newsbase.cs.yale.edu
Subject: Re: FYI> Hitch-Hiking from Sun/ *NIX to Apple // via Mac and back
jh@Germany.EU.net (Joerg Heitkoetter) wrote:
>Well--I still don't know why my ProDOS' CAT doesn't list the byte
>count of a file.
Try this:
>From the "]" prompt, type "PR#3" without the quotes.
Then type "CATALOG" without the quotes.
This should give you a FULL directory listing with all the info.
ProDOS' "CAT" command produces a crippled directory listing, with
the byte count being one of the things that are lacking. "CATALOG"
is the more powerful command. The byte count is the number in the
"Endfile Subtype" column.
This should work with real 128K Apple IIe and //c or above or
any emulator that is at that level (that is, can do the 80 column
text screen).
For 40 column only emulators, skip the "PR#3" step. This will
still give you all the information, but it will look ugly.
From: dempson@actrix.gen.nz (David Empson)
Newsgroups: comp.sys.apple2
Subject: Re: FYI> Hitch-Hiking from Sun/ *NIX to Apple // via Mac and back
Date: Sun, 1 Sep 1996 12:26:24 +1200
Organization: Empsoft
Joerg Heitkoetter
Author's reply to a later follow-up:
Newsgroups: comp.sys.apple2
From: jh@Germany.EU.net (Joerg Heitkoetter)
Organization: EUnet Deutschland GmbH, Research & Development
Subject: Re: FYI> Hitch-Hiking from Sun/ *NIX to Apple // via Mac and back
In article <50rgc4$eqa@news.fwi.com>, tsullivan@mail.fwi.com (Tom Sullivan) wri!
[..]
|> Jees, in retrospect, wouldn't it have been faster to simply retype
|> them?
No; it was was quite worthwile. 2nd I didn't had a printout of some
stories; and 3rd I even found 2 stories that even didn't really remember.
--
Have fun, -joke
===== ______ __ __ == Jörg Heitkötter
==== / __/ / / /__ ___ / /_ === Research Fellow, EUnet Engineering Task Force
=== / _// /_/ / _ \/ -_) __/ ==== Emil-Figge-Str. 80, D-44227 Dortmund
== /___/\____/_//_/\__/\__/ ===== Tel/Fax +49-231-972 -1038/-1188
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
--Aristotle
... and then again!
Copyright © 1992, 1997 Jörg Heitkötter. All rights reserved.
If you find bugs in this service, please inform joke@Germany.EU.net
Bookland * ENCORE * Heartland * Surfland
Toyland * Webland * Zooland
$Id: hhga2.html,v 3.196 1997/07/15 11:14:55 joke Rel $