WonderWitch .fx files: Difference between revisions
From WSdev Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
| $04 || 60 || Padding; typically 0xFF. | | $04 || 60 || Padding; typically 0xFF. | ||
|- | |- | ||
| $40 || | | $40 || 64 || [[WonderWitch/Filesystem|File entry]] (pointers relative to 0000:0000). | ||
|} | |} | ||
Latest revision as of 14:21, 17 October 2024
FreyaOS uses XMODEM transfers to send and receive files through the serial port. These transfers do not include any file metadata by default - such as the file's name, size, permissions or creation date. As such, .fx files are used - binary files with a special 128-byte header[1].
Format
Offset | Length | Contents |
---|---|---|
$00 | 4 | Magic string: #!ws
|
$04 | 60 | Padding; typically 0xFF. |
$40 | 64 | File entry (pointers relative to 0000:0000). |
- ↑ XMODEM transfers are performed in 128-byte blocks; this allows fetching the file's metadata as the first block