[comp.sys.apple] //gs question

nuwilken@ndsuvax.UUCP (Scott Wilken) (06/01/89)

I have a question concerning CDA's, NDA's, etc.

If I were to put a directory named SYSTEM on a disk which boots under
ProDOS 8, instead of loading P16 and running the finder, then put in the
directories like /desk.accs and /system.setup, would these things load, or
not?  I am inclined to think not, but I would like to use SYSBEEP and some
CDA's with a few 8-bit programs.

Thank you,

Scott Wilken


S.WILKEN1  --  GEnie Mail
nuwilken@ndsuvax.BITNET
nuwilken@plains.nodak.edu  --  Internet

farrier@Apple.COM (Cary Farrier) (06/01/89)

In article <2708@ndsuvax.UUCP> nuwilken@ndsuvax.UUCP (Scott Wilken) writes:
>
>I have a question concerning CDA's, NDA's, etc.
>
>If I were to put a directory named SYSTEM on a disk which boots under
>ProDOS 8, instead of loading P16 and running the finder, then put in the
>directories like /desk.accs and /system.setup, would these things load, or
>not?  I am inclined to think not, but I would like to use SYSBEEP and some
>CDA's with a few 8-bit programs.

	It will work if you are running a GS System disk (a system disk
	from a P8 system won't work).  The boot sequence on a GS System
	Disk performs the following steps (roughly)

		1. Inits the tool sets
		2. Does some internal mucking about
		3. Figures out which program to run next
		4. Loads all the system setup files
		5. Loads all the Desk Accessories
		6. Launches the program found in step 3

	If you are running a P8 application on the GS, then you will
	still be able to use CDAs and inits.

Cary Farrier

dlyons@Apple.COM (David Lyons) (06/02/89)

In article <2708@ndsuvax.UUCP> nuwilken@ndsuvax.UUCP (Scott Wilken) writes:
[...]
>If I were to put a directory named SYSTEM on a disk which boots under
>ProDOS 8, instead of loading P16 and running the finder, then put in the
>directories like /desk.accs and /system.setup, would these things load, or
>not?  I am inclined to think not, but I would like to use SYSBEEP and some
>CDA's with a few 8-bit programs.
>nuwilken@ndsuvax.BITNET
>nuwilken@plains.nodak.edu  --  Internet

No, ProDOS 8 doesn't attempt to load CDAs or setup files.

Yes, it can be done.  In December 87 I wrote something called P8CDA, which
goes in your main directory (P8CDA.SYSTEM), loads CDAs, and then runs the
next .SYSTEM file automatically.

P8CDA was originally shareware, but it sold very poorly as shareware and
ended up as a Roger Wagner Publishing product.

The current version also loads setup files from your SYSTEM/SYSTEM.SETUP
directory (or instead from the SYSTEM/P8.SETUP directory, if it exists).
It also uses the P8.ACCS directory, if you have one, instead of the DESK.ACCS
directory.

But P8CDA doesn't work with *all* CDAs or all setup files.  It won't work if
the CDAs or setup files make ProDOS 16 or GS/OS calls (so the SYSBEEP setup
file won't work), and it won't work if the CDAs or setup files contain
initialization segments or dynamic segments (most don't anyway).

Note that with no 3rd-party products you can make a GS/OS (or ProDOS 16) system
disk boot *through* the 16 bit environment & run an 8-bit application
automatically.  Just get rid of START from your SYSTEM directory, and make sure
your .SYSTEM file comes before any other .SYSTEM or .SYS16 files in the main
directory.

Finally, note that I wrote P8CDA before I worked for Apple, and that I'm
babbling about it now because somebody asked.

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   AppleLink--Apple Edition: DAVE.LYONS      |   P.O. Box 875
   AppleLink--Personal Edition: Dave Lyons   |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.

jazzman@claris.com (Sydney R. Polk) (06/02/89)

From article <2708@ndsuvax.UUCP>, by nuwilken@ndsuvax.UUCP (Scott Wilken):
> 
> I have a question concerning CDA's, NDA's, etc.
> 
> If I were to put a directory named SYSTEM on a disk which boots under
> ProDOS 8, instead of loading P16 and running the finder, then put in the
> directories like /desk.accs and /system.setup, would these things load, or
> not?  I am inclined to think not, but I would like to use SYSBEEP and some
> CDA's with a few 8-bit programs.
> 
> Thank you,
> 
> Scott Wilken
This is possible (look at AppleWorks) but is really gross.  Basically you
have to detect whether you are on a GS or not.  If you are then you
have to start the desk manager.

There is a lot of other hell you have go through too, but I'm not too
familiar with 8-bit code.

-- 
Syd Polk           | Wherever you go, there you are.
jazzman@claris.com | Let the music be your light.
GO 'STROS!         | These opinions are mine.  Any resemblence to other
GO RICE!           |  opinions, real or fictitious, is purely coincidence.

dlyons@Apple.COM (David Lyons) (06/02/89)

In article <10228@claris.com> jazzman@claris.com (Sydney R. Polk) writes:
>From article <2708@ndsuvax.UUCP>, by nuwilken@ndsuvax.UUCP (Scott Wilken):
>> [...]
>> If I were to put a directory named SYSTEM on a disk which boots under
>> ProDOS 8, instead of loading P16 and running the finder, then put in the
>> directories like /desk.accs and /system.setup, would these things load, or
>> not?  [...]
>> Scott Wilken
>This is possible (look at AppleWorks) but is really gross.  Basically you
>have to detect whether you are on a GS or not.  If you are then you
>have to start the desk manager.
>[...]
>Syd Polk

No!  Never ever call DeskStartup under ProDOS 8 (even though AppleWorks 2.0
does; they fixed that in AppleWorks 2.1).

DeskStartup tells NDAs that an application which fully supports NDAs (not CDAs!)
is starting up, and that a whole bunch of toolsets are available and already
started up.

Well-behaved NDAs are perfectly welcome to crash your system for you if
DeskStartup is called under ProDOS 8.

The problem with *loading* CDAs under ProDOS 8 is that the Loader isn't around
to interpret the object module format that the CDAs are stored in.  That's
what P8CDA (see my recent msg) does.

 --Dave Lyons, Apple Computer, Inc.          |   DAL Systems
   AppleLink--Apple Edition: DAVE.LYONS      |   P.O. Box 875
   AppleLink--Personal Edition: Dave Lyons   |   Cupertino, CA 95015-0875
   GEnie: D.LYONS2 or DAVE.LYONS         CompuServe: 72177,3233
   Internet/BITNET:  dlyons@apple.com    UUCP:  ...!ames!apple!dlyons

   My opinions are my own, not Apple's.