[xx]= Transfer unit.
-> = Response.
->> = Back to prompt.
All names in 8.3 format.
Max pathlength = 1000 charakters.
Max line length = 255 charakters.
Max data length = 255 bytes.
Cache dir 2048 entries with DOS attribute and the file length.
[$AA] is sent when command is finished.
An error ocured if [$AF] is receifed instead of [$AA] or before [$EE].
On startup the version number is sent before [$EE].
DOS Attribute: D=directory, F=file.
SYS and CACHE DIR commands can take very long.
Return values
[$EE] -> Expecting command
[$AF] -> Error
[$AE] -> Unknown command
[$AA] -> OK
[$A1] -> Echo
[$AD] -> No disk or file system error
Commands
SYS
[$A0, $0D]
-> [$AA]
-> [4byte] (disksize)
-> [4byte] (free bytes)
->>
ECHO
[$A1]
-> [$A1]
DIR
[$D0, $0D]
-> [$AA]
-> [filename], [$AA]
...
-> [filename]
->>
CHDIR
[$D1], [foldername], [$0D]
-> [$AA]
->>
PATH
[$D2, $0D]
-> [2byte] (path length)
-> [string]
->>
MAKE DIR
[$D3], [foldername], [$0D]
-> [$AA]
->>
REMOVE DIR
[$D4], [foldername], [$0D]
-> [$AA]
->>
OPEN READ ASCII
[$F0], [filename], [$0D]
-> [$AA]
->>
OPEN WRITE ASCII
[$F1], [filename], [$0D]
-> [$AA]
->>
OPEN APPEND ASCII
[$F2], [filename], [$0D]
-> [$AA]
->>
OPEN BINARY
[$F3], [filename}, [$0D]
-> [$AA]
READ ASCII LINE
[$F4, $0D]
-> [$AA]
-> [2bytes] (line length, $FFFF = end)
-> [string]
->>
WRITE ASCII LINE
[$F5, $0D]
-> [$AA]
[string]
[$F6] (end)
-> [$AA]
->>
GET BINARY
[$F7], [1byte], [$0D] (length)
-> [$AA]
-> [data]
->>
PUT BINARY
[$F8], [1byte], [$0D] (length)
-> [$AA]
[data]
-> [$AA]
->>
FILE POINTER
[$FE], [4byte], [$0D] (cursor position in file)
-> [$AA]
->>
CLOSE FILE
[$FA, $0D]
-> [$AA]
->>
DELETE FILE
[$FD], [filename], [$0D]
-> [$AA]
->>
FILE ATTRIBUTE
[$A2], [filename], [$0D]
-> [AA]
-> [1byte] (DOS attrib)
-> [4byte] (file length)
->>
CACHE DIR
[$D5, $0D]
-> [$AA] (this may take long)
-> [2byte] (# of entries)
->>
CACHE FILENAME
[$D7], [2bytes], [$0D] (file #)
-> [$AA]
-> [filename]
->>
CACHE FILE ATTRIBUTE
[$D8], [2bytes], [$0D] (file #)
-> [$AA]
-> [4byte] (file length, little endian)
-> [1byte] (DOS attrib)
->>