90
edits
(Added the checksum formula to the data.) |
|||
Line 216: | Line 216: | ||
| 00H || 0x03 || File Type. 00=Basic Program, 01=Numeric Array, 02=Character Array, 03=CODE Function. | | 00H || 0x03 || File Type. 00=Basic Program, 01=Numeric Array, 02=Character Array, 03=CODE Function. | ||
|- | |- | ||
| 01H-02H || 0x00, 0x02H || | | 01H-02H || 0x00, 0x02H || File Length (0x0200H bytes = 512 Bytes ) | ||
|- | |- | ||
| 03H-04H || 0x40, | | 03H-04H || 0x40, 0x9CH || Place it was saved from (Used for code only, but populated for all file types) | ||
|- | |- | ||
| 05H- | | 05H-06H || 0xFF, 0xFFH ||* BASIC: start of variables area in file. | ||
* Numeric arrays: [5] = 0x80 + (variable name - 'A') | |||
* Char array: [5] = 0xC0 + (variable name - 'A') | |||
* Code: Unused (Should be FFh FFh) | |||
|- | |||
| 07H-08H || 0xFF, 0xFF || For BASIC, Autorun line no (lsb first, 0x00 0x80 = No autorun), $FF for all other file types. | |||
|- | |- | ||
| 09H-01FFH || 0x00, 0x01, 0x02, 0x04 etc... to 0xFF || The first 503 bytes of actual saved data. Anything more than this gets saved in the next sector. | | 09H-01FFH || 0x00, 0x01, 0x02, 0x04 etc... to 0xFF || The first 503 bytes of actual saved data. Anything more than this gets saved in the next sector. |
edits