home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CBM Funet Archive
/
cbm-funet-archive-2003.iso
/
cpm
/
faq
/
cpm-on-c128-3.txt
< prev
next >
Wrap
Text File
|
2001-08-30
|
5KB
|
121 lines
Cp/m on the c128 (article 3)
BY nOEL nYMAN
(cOPYRIGHT 1986 BY gEODUCK dEVELOPMENTAL sYSTEMS.
pERMISSION TO REPRINT THIS MATERIAL IS HEREBY GRANTED,
PROVIDED THIS NOTICE IS INCLUDED IN THE REPRINTED MATERIAL.)
bEFORE WE DISCUSS MORE RESIDENT UTILITIES, LET'S LOOK AT
USING DISK DRIVES WITH THE c128 IN cp/m MODE. tHE 1571
DRIVE WHICH WAS DESIGNED TO WORK WITH THE c128 WILL READ
REGULAR 1541 TYPE DISKS AND ALSO THE mfm TYPE DISKS USED BY
MANY 5 1/4 INCH cp/m DISK MACHINES. tHIS HAS LED TO SOME
CONFUSION ABOUT JUST WHAT A "cp/m" DISK IS.
cOMMODORE USES A PROCESS CALLED gcr (gROUP cHARACTER
rECOGNITION) TO RECORD DATA ON ITS DISKS. gcr DESCRIBES THE
WAY IN WHICH THE DISK ELECTRICAL SYSTEM WORKS. iT DOES NOT
HAVE ANYTHING TO DO WITH THE NUMBER OF TRACKS OR SECTORS, OR
THEIR PLACEMENT ON THE DISK. aPPLE ALSO USES A FORM OF gcr,
BUT THEIR TRACK LAYOUT IS QUITE DIFFERENT.
wHEN A DISK IS FORMATTED ON A 1541, THE dos (dISK oPERATING
sYSTEM) PUTS 35 TRACKS ON THE DISK CONTAINING 664 SECTORS.
a 1571 USES EXACTLY THE SAME LAYOUT ON THE "FRONT" OF THE
DISK, THEN REPEATS IT ON THE "BACK", FOR A TOTAL OF 70
TRACKS AND 1328 SECTORS.
wHEN YOU FORMAT A DISK USING THE cp/m UTILITY "format.com",
THE LAYOUT OF THE TRACKS AND SECTORS IS identical TO THAT
USED IN THE STANDARD 1541 OR 1571. tHE cp/m DISK HAS ITS
DIRECTORY AREA ON DIFFERENT TRACKS AND PLACES A boot SECTOR
ON EACH FORMATTED DISK, BUT THE LAYOUT IS THE SAME. yOU CAN
PROVE THIS BY EXAMINING A cOMMODORE cp/m DISK IN c64 MODE
WITH A "DISK DOCTOR" PROGRAM.
tHIS MEANS THAT YOU CAN USE ANY COMBINATION OF 1541'S AND
1571'S IN A c128 cp/m SYSTEM. tHE cp/m DISK THAT CAME WITH
YOUR c128 IS A SINGLE SIDED (1541) DISK. yOU CAN READ IT
WITH EITHER DISK DRIVE. yOU MUST TURN IT OVER TO READ THE
"BACK" SIDE. yOU CAN ALSO COPY A SINGLE SIDED (1541) cp/m
DISK WITH ANY "BIT" COPIER OR WITH THE BACKUP COMMAND ON A
DUAL DRIVE SUCH AS THE msd.
hOWEVER, cp/m IS not PRACTICAL WITH A SINGLE 1541 DISK
DRIVE. iT'S JUST TOO SLOW. iF YOU WANT TO LEARN ABOUT THE
cp/m SYSTEM, OR EXPERIMENT WITH SOME OF THE PROGRAMS, THE
SPEED WILL BE TOLERABLE. bUT ANY SERIOUS PROGRAMMING,
DATABASE OR WORD PROCESSOR WORK WILL TAKE TOO LONG. yOU ARE
MUCH BETTER OFF WITH EXISTING c64 PROGRAMS FOR THOSE TASKS.
uSING ONE OF THE MANY "FAST LOAD" PROGRAMS OR CARTRIDGES
WILL MAKE A c64 SYSTEM MUCH FASTER AND EASIER TO USE THAN A
1541 cp/m SYSTEM.
iF YOU HAVE A 1571, YOU CAN USE A 1541 AS THE "b" DRIVE WITH
BETTER RESULTS. tHE DISK OPERATIONS WILL STILL BE SLOW ON
THE 1541. bUT YOU CAN DO YOUR PRIMARY WORK WITH THE FASTER
DRIVE.
iF YOU ARE CONTEMPLATING THE PURCHASE OF A c128 AND TWO
1571'S just TO RUN cp/m, i ADVISE AGAINST IT. fOR THE SAME
MONEY YOU COULD PURCHASE A LOW END OR USED cp/m COMPUTER
SUCH AS A kAYPRO WHICH WILL RUN cp/m MANY TIMES FASTER THAN
A c128. hOWEVER, FOR THE COMBINATION OF A FANTASTIC bASIC,
EXCELLENT SOUND AND GRAPHICS, c64 COMPATIBILITY (MOSTLY) AND
cp/m AS FROSTING ON THE CAKE, THE c128/1571 SYSTEM IS A
GOOD BARGAIN.
lAST TIME WE USED THE "dir" RESIDENT UTILITY TO LOOK AT A
DISK DIRECTORY. eNTER THE COMMAND AGAIN, AND LOOK AT THE
BOTTOM OF THE LISTING. iF THE input cp/m1 DISK IS IN YOUR
DRIVE, YOU'LL SEE THE PHRASE "sYSTEM FILE(S) EXIST". nOW
ENTER THE COMMAND
a> DIRSYS
yOU SHOULD SEE ONLY THE FILE "ccp.com" FOLLOWED BY THE
PHRASE "nON-SYSTEM FILE(S) EXIST".
tHE TERM "SYSTEM" REFERS TO AN "ATTRIBUTE" OR CHARACTERISTIC
GIVEN TO CERTAIN FILES. iT DOES not REFER TO THE EXTENSION
".sys". nOTICE THAT THE FILE "cpm+.sys" APPEARS WHEN YOU
USED THE "dir" COMMAND, BUT IS NOT LISTED WITH "dirsys".
tHE SYSTEM ATTRIBUTE IS IMPORTANT FOR HARD DISK OR
MULTI-USER SYSTEMS. wE'LL LOOK AT IT MORE CLOSELY WHEN WE
DISCUSS THE "user" COMMAND. bUT SYSTEM FILES ARE ALSO LESS
LIKELY TO BE ACCIDENTALLY ERASED. tO ERASE A SYSTEM FILE,
YOU MUST USE A SPECIAL COMMAND. sO IT MAKES SENSE TO
PROTECT YOUR MOST VALUABLE FILES IN THIS WAY. wE'LL USE A
UTILITY CALLED "set.com" TO CHANGE "cpm+.sys" TO A SYSTEM
FILE.
pLACE THE ORIGINAL cp/m DISK YOU RECEIVED WITH YOUR c128 IN
DRIVE a AND USE "dir" TO BE SURE YOU HAVE THE SIDE
CONTAINING "set.com". tHEN IF YOU HAVE TWO DISK DRIVES,
PLACE THE input cp/m1 DISK IN DRIVE b AND TYPE:
a> SET B:CPM+.SYS[SYSTEM]
dON'T LEAVE A SPACE BETWEEN THE ".SYS" AND THE LEFT BRACKET.
bE SURE TO USE BRACKETS, SHIFTED ":" AND ";". iF YOU HAVE
ONLY ONE DRIVE, TYPE:
a> SET E:CPM+.SYS[SYSTEM]
iN EITHER CASE, cp/m WILL load THE PROGRAM "set.com" FROM
THE DISK IN DRIVE a. fOR A TWO DRIVES, cp/m WILL THEN
CHANGE THE ATTRIBUTE OF THE FILE ON THE DISK IN DRIVE b.
fOR ONE DRIVE, cp/m WILL PROMPT YOU TO PLACE THE "e" DISK IN
DRIVE a, AND THEN CHANGES THE ATTRIBUTE.
nOW USE "dir" AND "dirsys" TO CHECK YOUR WORK. "set.com"
HAS MANY OTHER USES WE'LL LOOK AT LATER.
nEXT TIME WE'LL LOOK AT THE REST OF THE cp/m RESIDENT
UTILITIES. input cp/m1 DISK IS AVAILABLE WITH SEVERAL
USEFUL PROGRAMS, THE NEWEST cp/m OPERATING SYSTEM, AND TEXT
FILES OF THE FIRST FOUR OF THESE ARTICLES. cHECK THE ORDER
FORM ELSEWHERE IN THIS ISSUE.