exodus@uop.UUCP (Greg Onufer) (04/23/87)
This is available on the ATARI BBS in Sunnyvale but it may be useful for others so I'm posting it here... It was written for EASYDRAW but I've used that version of GDOS with DEGAS Elite and it seems to work okay... The README file is followed by the source code (C). HARDGDOS is a very simple program to allow you to boot GDOS from your Hard Disk. Then, when you run EasyDraw, all the fonts will be loaded from the Hard Disk, instead of Floppy Drive A:. (I don't know if this will work with any version of GDOS other than the one supplied with EasyDraw v1.03. I haven't tried it with TOS in RAM either.) To use the program you have to rebuild your AUTO folder on the floppy you use to boot your Hard Disk and build a GDOS folder on your Hard Disk. Rebuilding your AUTO folder: Remove all programs (*.PRG files) from the AUTO folder on your floppy disk. Then copy files back into the AUTO folder, in the following order: AHDI.PRG The HD Driver Program. (Yours may have a different name.) HARDGDOS.PRG This will load GDOS from C:\GDOS. (.....) The rest of the files you usually have in your AUTO folder in the order you prefer. Build a GDOS folder on your Hard Disk: (This assumes the first partition of your Hard Disk is installed as drive C:.) 1. Create a new folder on C: named GDOS. 2. Copy the following files from your EasyDraw disks into the GDOS folder: GDOS.PRG ASSIGN.SYS FX80.SYS META.SYS *.FNT (All files with a .FNT extension) (If you don't already have your EasyDraw files on the Hard Disk, you may want to copy all files with the extensions .PRG, .RSC, .EZD, and .GEM from both of your EasyDraw disks on to the Hard Disk. If you put them in a folder, I recommend you do not put them in the GDOS folder.) Now, reboot your system, using the floppy you just built the AUTO folder on. If all goes well, you should see the message "GEMVDI resident" appear at the top of your screen just before the Desktop appears. About the program: The program relies on the fact that GDOS will look for the .SYS and .FNT files on the current drive and path in effect when GDOS.PRG is run. When HARDGDOS.PRG runs, it sets the current drive to C: and the current path to "C:\GDOS\". It then "runs" GDOS.PRG using the Pexec() function. Then it exits. That's all there is to it! You can change the drive and path that GDOS will "reside in" by editing the HARDGDOS.C, changing the drive and/or path, recompiling the program, and copying the new program to the AUTO folder on you HD boot disk, as described above. I used Megamax-C, but see no reason the program shouldn't work in any flavor of C for the Atari ST (Alcyon, MW, Lattice, etc.). Questions and/or comments are welcome. Ric Clayton Tandem CLAYTON_RIC @NWEST GEnie RIC Compuserve 73317,1350 #include <osbind.h> main() { Dsetdrv( 2 ); /* Set drive to C: */ Dsetpath( "C:\\GDOS\\" ); /* Set path to C:\GDOS\ */ Pexec( 0, "GDOS.PRG", "", "" ); /* Run C:\GDOS\GDOS.PRG */ exit( 0 ); /* Hope all went well...*/ } -------------------------------------------------------------------------------- | The secret to flying is jumping and missing the ground... | | -Hitchhiker's Guide to the Galaxy | |..............................................................................| | Greg Onufer (EXODUS) | | Mail: University of the Pacific, Casa Jackson #311, Stockton, CA 95211 | | UUCP: ...ucdavis!uop!exodus GEnie: G.ONUFER | Voice: (209) 944-7484 | -------------------------------------------------------------------------------- -- -------------------------------------------------------------------------------- | The secret to flying is jumping and missing the ground... | | -Hitchhiker's Guide to the Galaxy | |..............................................................................| | Greg Onufer (EXODUS) | | Mail: University of the Pacific, Casa Jackson #311, Stockton, CA 95211 | | UUCP: ...ucdavis!uop!exodus | | Voice: (209) 944-7484 | --------------------------------------------------------------------------------
engst@batcomputer.tn.cornell.edu (Adam C. Engst) (04/26/87)
I keep hearing about GDOS, but the only program I've seen that uses it is EasyDraw. Could someone tell me exactly what GDOS does and why we need it? Thanks a lot. Adam Engst engst@batcomputer.tn.cornell.edu