Login
Back to forumSee the full topicGo to last reply

Posted By

JamesC
on 2015-02-20
08:17:38
 Re: Directory Browser V1.0

TR = starting track number (1 through 78, and cannot overlap track 40)
SS = starting sector (must be zero)
SE = number of sectors (must be 120 or more, AND must be a multiple of 40)
The partition name is max 16 characters, same length as file name or disk name.

It is your responsibility to ensure that the requested tracks and sectors are not already in use!

1 OPEN 15,8,15
2 PRINT#15, "/0:partition name" + CHR$( TR ) + CHR$ ( SS ) + CHR$( low btye of SE ) + CHR$( high byte of SE ) + ",C"
3 PRINT DS$ : REM ERROR 77 = ILLEGAL PARTITION
4 CLOSE 15
5 DIRECTORY : REM PARTITIONS APPEAR AS FILE TYPE 'CBM'

Once created, you can enter the partition by:
1 OPEN 15,8,15
2 PRINT#15, "/0:partition name"
3 CLOSE 15

Upon first creating and then entering the partition, it must be formatted before it can be used. HEADER "my partition", I01, D0, U8




Back to top


Copyright © Plus/4 World Team, 2001-2024