home *** CD-ROM | disk | FTP | other *** search
- Thi≤ elemen⌠ contain≤ thσ documentatioε fo≥ MITSCNVT.
-
- MITSCNV╘á i≤ ß prograφ whicΦ operate≤ unde≥ CP/═ anΣ enable≤á thσ ì
- use≥á t∩á lis⌠ thσ director∙ anΣ conver⌠ MIT╙ ALTAI╥á (T═á Perteπ ì
- Compute≥á Corp⌐ disδ file≤ t∩ CP/═ files«á Thσ reasoε conversioε ì
- i≤á requireΣ i≤ tha⌠ thσ disδ format≤ arσ differen⌠ anΣ tha⌠á thσ ì
- ALTAI╥ DIS╦ i≤ ß harΣ sectoreΣ disδ whicΦ contain≤ 3▓ sector≤á oµ ì
- 13╖ byte≤ eacΦ pe≥ track« ┴ CP/═ compatablσ disδ i≤ sof⌠ sectoreΣ ì
- anΣ i≤ composeΣ oµ 2╕ sector≤ oµ 12╕ o≥ 25╢ byte≤ eacΦ sector.
-
- Thσ ALTAI╥ disδ i≤ capablσ oµ containinτ ß 25╡ entr∙ director∙ oε ì
- eacΦ disδ anΣ eacΦ director∙ entr∙ "pointsó t∩ ß threadeΣ lis⌠ oµ ì
- sectors«á Iε orde≥ t∩ ensurσ thσ integrit∙ oµ thσ threadeΣ list¼ ì
- eacΦ secto≥ iε thσ lis⌠ contain≤ ß singlσ bytσ whicΦ i≤ thσ "filσ ì
- numberóá - aε intege≥ calculateΣ froφ thσ locu≤ oµ thσá director∙ ì
- entry«á If¼á durinτá operation≤á oε thσ chain¼á thσ filσá numbe≥ ì
- change≤ ß 'filσ linδ errorº i≤ giveε anΣ thσ prograφ aborts« Thσ ì
- calculatioε fo≥ thσ filσ numbe≥ i≤ giveε erroneousl∙ iε thσá MIT╙ ì
- documentatioε anΣ i≤ correcteΣ here:
-
- 8*SECTOR+(SLOT+1)
-
- Wherσá SECTO╥ i≤ thσ director∙ secto≥ numbe≥ (0-31⌐ iε whicΦá thσ ì
- filσá namσá i≤ founΣ anΣ SLO╘ i≤ thσ grou≡ numbe≥ oµ ßá 1╢á bytσ ì
- widσ director∙ entr∙ oµ thσ format:
-
- Bytes Description
- ------------------------------------------------------
- 00-07 ASCII File Name - if the first character is a
- zero (binary zero) the entry is ignored. If
- it is 0ff (all one bits) this is the last entry
- in the directory. An ignored entry is the
- result of deleting a file in the MITS directory.
-
- 08 Track address of the first sector in the file.
- Track 0-5 are never used as they are 'system'
- tracks. Track 70 is the directory track.
-
- 09 Sector number of the first sector of the file.
- Sectors are always 0,8,16 or 24. Sectors are
- allocated in groups of eight. There is no
- pattern for it, but, because of latency consid-
- erations odd numbered sectors are 16+sector number
- AND 1Fh away from the even sector in a logical
- sense. My calculations indicate this is a poor
- choice and if you have ever heard ALTAIR Disk
- Extended Basic or DOS run, you'll know its not
- too good.
-
- 10 Flag to indicate file organization - 4=random
- 2=sequential
-
- 11-15 Wasted bytes NOTE: at one time or another the
- program MITSCNVT uses these bytes to store some
- information about each file -not on the diskè but in memory.
-
- ----------------------------------------------------------
- A≤áá aεáá examplσá le⌠á mσá usσá thσá filσá &OCTBI╬áá fo≥ ì
- illustratioε purposes«á I⌠ - quitσ arbitraril∙ - wil∞ bσ assumeΣ ì
- t∩ star⌠ iε tracδ 7▓ secto≥ 0«á Thi≤ woulΣ bσ it≤ director∙ entr∙ ì
- iµ i⌠ werσ ß sequentia∞ file:
- __________________________________________________________
- | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |....
- ----------------------------------------------------------
- & O C T B I N b 72
-
- ----------------------------------------------------------
- | 10 | 11 | 12 | 13 | 14 | 15 | 16 | byte number
- ----------------------------------------------------------
- 0 2 unused bytes------------>
-
- Iµ thi≤ werσ thσ 5tΦ entr∙ iε director∙ secto≥ zer∩ i⌠ woulΣ filσ ì
- numbe≥ 5.
-
- Movinτ alonτ iε thσ examplσ eacΦ datß filσ begin≤ witΦá ß ì
- forma⌠ iε whicΦ thσ datß arσ embedded.
-
- The format is as follows:
-
- Byte Description (For Sequential files)
- -----------------------------------------------------------
- 00 Track number +80h. This high order bit must be set
- for every track number. The physical track is
- identified in every sector on that track in this
- manner.
-
- 01 Physical sector number of each sector. Every sector
- is identified this way. Sectors are numbered 0-31.
-
- 02 File number. If =0 then this sector is NOT in use
- at this time. (When a file is deleted you have to
- wait for each sector in the chain to be rewritten so
- that the file number can be set to zero).
-
- 03 Number of data bytes written in this sector
-
- 04 Checksum of all data in the sector except bytes 0,1,4
- and 136. Byte 135 is also not used in the checksum
- calculation. The checksum is the sum of all of the
- data without regard to overlow as done in an eight bit
- register.
-
- 05 Track number of the NEXT data sector in the chain.
-
- 06 Sector number of the next data sector in the chain.
- If track and sector number are both zero there is no
- more file (EOF).
-
- 07-134 128 words of data. If the first byte is ffh then theè file is binary. If the first byte is other than ffh
- then the file is ASCII. The first byte is the
- first byte of the first sector of the file - not the
- first byte of any sector.
-
- 135 Check byte - always ffH. This is used to ensure that
- everything else in the sector was in the right place.
-
- --------------------------------------------------------------
-
- EacΦá oµá thσá byte≤ iε thesσ sector≤ arσ linkeΣá t∩á thσ ì
- othe≥ sector≤ iε ß "forwardó directioε unti∞ byte≤ 5+╢ arσá zero« ì
- Thi≤ signal≤ tha⌠ thσ curren⌠ datß blocδ i≤ thσ las⌠ blocδ iε thσ ì
- file«á Thσá director∙á sector≤ arσ locateΣ iεá tracδá 70«á EacΦ ì
- director∙á secto≥á begin≤ iε thσ 8tΦ bytσ oµ thσ physica∞á secto≥ ì
- (thσ firs⌠ ╖ byte≤ arσ garbage).
-
-
- USE OF THE PROGRAM:
- __________________
-
- Thσ prograφ accept≤ tw∩ type≤ oµ input«á Thσ firs⌠á typσ ì
- oµá inpu⌠ i≤ ß disδ numbe≥ prefixeΣ b∙ aε equal≤ sign«á Thi≤ wil∞ ì
- resul⌠á iεá recover∙ oµ thσ MIT╙ director∙ oε tha⌠ disδá anΣá thσ ì
- listinτ oµ tha⌠ directory« A≤ aε example:
-
- =5
-
- wil∞á resul⌠á iεá selectioε oµ disδ ╡ anΣá thσá recover∙á oµá thσ ì
- directorie≤ oε tha⌠ disδ whicΦ wil∞ bσ listed.
-
- Thσá seconΣ typσ oµ inpu⌠ i≤ ß CP/═ filσ namσ followeΣ b∙ ì
- ß filσ type¼á aε equa∞ sigε anΣ ß MIT╙ filσ namσ anΣ disδ number« ì
- Thi≤ wil∞ searcΦ thσ director∙ oε thσ specifieΣ MIT╙ disk¼ locatσ ì
- thσ filσ anΣ writσ i⌠ oε thσ CP/═ disδ specified« A≤ examples:
-
- (1) CPMFILE.MIT=ZCTABLE,0
- (2) DIET.BAS=DIET,0
- (3) OCTOCT.ASM=&OCTOCT,2
-
- Iεá examplσ (1⌐ thσ filσ 'ZCTABLEº locateΣ oε MIT╙ disδá zer∩á i≤ ì
- copieΣá ont∩á thσá CP/═ disδ a≤ filσ CPMFILE.MIT«á Iεá thσá nex⌠ ì
- example¼á (2)¼á filσá DIE╘á oε disδ zer∩ i≤ copieΣ t∩á CP/═á filσ ì
- DIET.BAS«á Iε thσ las⌠ example¼á MIT╙ filσ &OCTOC╘ oε MIT╙á disδ ì
- tw∩á i≤ copieΣ t∩ CP/═ filσ OCTOCT.ASM«á Thu≤ thσ MIT╙ file≤ arσ ì
- alway≤á oε thσ righ⌠ sidσ oµ thσ equal≤ sigε anΣ thσá CP/═á file≤ ì
- arσá oε thσ lef⌠ hanΣ side«á Notσ tha⌠ aε ambiguou≤ filσ namσ i≤ ì
- no⌠ permitteΣ becausσ thσ CP/═ file≤ arσ opeε fo≥ writing.
-
- Becausσ thσ file≤ arσ accepteΣ iε lis⌠ form¼á thσ prograφ ì
- ma∙ bσ useΣ a≤ ß submi⌠ job«á Problem≤ witΦ thi≤ prograφ ma∙á bσ ì
- submitteΣá iεá writinτ t∩ thσ author«á Thσ prograφ i≤á copyrigh⌠ ì
- 198▒á b∙á thσá author«á Usσá i≤á permitteΣá iεá ßá non-commercia∞ ì
- environment«á Commercia∞á usσ license≤ ma∙ bσ obtaineΣ froφá thσ ì
- autho≥á a⌠á ßá reasonablσ cost«á Conversion≤á caεá bσá performeΣ ìèbetweeεá othe≥ harΣ secto≥ format≤ anΣ cp/φ format«á Contac⌠á u≤ ì
- fo≥ details.
-
- CP/═ I╙ ┴ TRADEMAR╦ O╞ DIGITA╠ RESEARCH¼á PACIFI├ GROV┼ CA« MITS¼ ì
- ALTAIR¼á PC├á MA┘á B┼ REGISTERE─ TRADEMARK╙á O╞á PERTE├á COMPUTE╥ ì
- CORP.¼ CHATSWORT╚ CA.