TR-DOS filesystem: Difference between revisions

Jump to navigation Jump to search
Line 235: Line 235:
|}
|}


====Character array====
====CODE file====
This is the directory entry for a character array of 10,5 and is of length 55 bytes. (See other articles on the encoding of arrays in saved files)
This is the directory entry for a CODE file saved with Start 30000 and length 2000
The Raw dirent is as follows:
The Raw dirent is as follows:


   63 64 61 74 61 20 20 20  44 A7 5F 37 00 01 0A 01  cdata  D._7....
   63 6F 64 65 20 20 20 20  43 30 75 D0 07 08 02 01  code    C0u.....


{| class=wikitable
{| class=wikitable
Line 251: Line 251:
| 0-7
| 0-7
| 00-07
| 00-07
| 63 64 61 74 61 20 20 20
| 63 6F 64 65 20 20 20 20
| "cdata  "
| "code    "
| Filename
| Filename
|-  
|-  
| 8
| 8
| 08
| 08
| 44
| 43
| "D" (Data)
| "C" (Data)
| File type
| File type
|-
|-
| 9-10
| 9-10
| 09-0A
| 09-0A
| A7 5F
| 30 75
| A7=10100111, Bit 5,6,7=101 marking a Character array. 5f value unused.
| 0x7530=30000 bytes
| Contains the marker for the array type, in this case, 101=Character array
| Load address
|-
|-
| 11-12
| 11-12
| 0a-0b
| 0a-0b
| 37 00
| D0 07
| 55 bytes long
| 0x07D0 = 2000 bytes
| Length of the file
| Length of the file
|-
|-
| 13
| 13
| 0C
| 0C
| 01
| 8
| 1 sector long
| 8 sectors long
| Number of sectors the file uses
| Number of sectors the file uses
|-
|-
| 14
| 14
| 0D
| 0D
| 0A
| 02
| Start sector 10
| Start sector 2
| Sector the file starts from (Note, sectors number from 0 regardless of the actual disk layout)
| Sector the file starts from (Note, sectors number from 0 regardless of the actual disk layout)
|-
|-
90

edits

Navigation menu