Response ( result of the Command ) List for Disk Access
Response
Remarks
00
Complete (No Error)
01
Busy
02
Error : No disk
03
Error : File Not Exist
04
Error : Can Not Delete File
05
Error : Can Not Create File
06
Error : End of File
07
Error : Read Error
08
Error : Write Error
09
Error : Can Not Close File
Description of Commands ( the following section )
00 Reset
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 12 00 02 | 00
| Reset Command
+——————————+—————————+———————————————————————————————————————————————————+
It resets the Disk Access, closes all files and clears the Buffer.
You should execute the command before any file access.
01 Read Open
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 10 00 00 | 20 - 7E | File Name - 1
| 10 00 01 | 20 - 7E | File Name - 2
| 10 00 02 | 20 - 7E | File Name - 3
| 10 00 03 | 20 - 7E | File Name - 4
| 10 00 04 | 20 - 7E | File Name - 5
| 10 00 05 | 20 - 7E | File Name - 6
| 10 00 06 | 20 - 7E | File Name - 7
| 10 00 07 | 20 - 7E | File Name - 8
| 10 00 08 | 20 - 7E | File Extension - 1
| 10 00 09 | 20 - 7E | File Extension - 2
| 10 00 0A | 20 - 7E | File Extension - 3
|——————————+—————————+———————————————————————————————————————————————————|
:
:
|——————————+—————————+———————————————————————————————————————————————————|
| 12 00 02 | 01
| Read Open Command
+——————————+—————————+———————————————————————————————————————————————————+
It opens the specified file for reading, sets the reading pointer to the top of file and sets the
result to the Result(same as Read Open Command) Area.
You can open only one file at the same time. (cannot open the Reading File and the Writing
File simultaneously) The File Name is based on MS-DOS format.
02 Write Open
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 10 00 00 | 20 - 7E | File Name - 1
| 10 00 01 | 20 - 7E | File Name - 2
| 10 00 02 | 20 - 7E | File Name - 3
| 10 00 03 | 20 - 7E | File Name - 4
| 10 00 04 | 20 - 7E | File Name - 5
| 10 00 05 | 20 - 7E | File Name - 6
| 10 00 06 | 20 - 7E | File Name - 7
| 10 00 07 | 20 - 7E | File Name - 8
| 10 00 08 | 20 - 7E | File Extension - 1
| 10 00 09 | 20 - 7E | File Extension - 2
| 10 00 0A | 20 - 7E | File Extension - 3
|——————————+—————————+———————————————————————————————————————————————————|
:
:
|——————————+—————————+———————————————————————————————————————————————————|
| 12 00 02 | 02
| Write Open Command
+——————————+—————————+———————————————————————————————————————————————————+
It opens the specified file for writing, sets the writing pointer to the top of file and sets the
result to the Result(same as Write Open Command) Area.
If the same name's file already existed, it is deleted.
You can open only one file at the same time. (cannot open the Reading File and the Writing
File simultaneously) The File Name is based on MS-DOS format.
Contents and remarks
Contents and remarks
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
Contents and remarks
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
03 Read
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 12 00 00 | 0aaaaaaa| Data Size
| 12 00 01 | 0bbbbbbb|
|——————————+—————————+———————————————————————————————————————————————————|
| 12 00 02 | 03
| Read Command
+——————————+—————————+———————————————————————————————————————————————————+
It reads the Data which has specified size of Bytes to the Buffer area from current read
pointer of the File, after that puts forward the pointer and sets the result to the Result(same
as Read Command) Area.
If the remainder of the file data was less than specified size of Bytes, it reads all data to the
buffer and writes the actual size to the Data Size area. If you read the data from over the end
of file, the error occurs.
04 Write
+————————————————————————————————————————————————————————————————————————+
|
| Start
|
|
|
|
address |
Data
|
|==========+=========+===================================================|
|
| 12 00 00 | 0aaaaaaa| Data Size
| 12 00 01 | 0bbbbbbb|
|——————————+—————————+———————————————————————————————————————————————————|
| 12 00 02 | 04
| Write Command
+——————————+—————————+———————————————————————————————————————————————————+
It writes the Data which has specified size of Bytes to current write pointer area from the
Buffer area, after that puts forward the pointer and sets the result to the Result(same as
Write Command) Area.
05 Read Close
|
|
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 12 00 02 | 05
| Read Close Command
+——————————+—————————+———————————————————————————————————————————————————+
It closes the File which is opened for reading, and sets the result to the Result (same as Read
Close Command) area.
06 Write Close
|
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 12 00 02 | 06
| Write Close Command
+——————————+—————————+———————————————————————————————————————————————————+
It closes the File which is opened for writing, and sets the result to the Result (same as Write
Close Command) Area.
07 Check File
|
|
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
| 10 00 00 | 20 - 7E | File Name - 1
| 10 00 01 | 20 - 7E | File Name - 2
| 10 00 02 | 20 - 7E | File Name - 3
| 10 00 03 | 20 - 7E | File Name - 4
| 10 00 04 | 20 - 7E | File Name - 5
| 10 00 05 | 20 - 7E | File Name - 6
| 10 00 06 | 20 - 7E | File Name - 7
| 10 00 07 | 20 - 7E | File Name - 8
| 10 00 08 | 20 - 7E | File Extension - 1
| 10 00 09 | 20 - 7E | File Extension - 2
| 10 00 0A | 20 - 7E | File Extension - 3
|
|——————————+—————————+———————————————————————————————————————————————————|
:
:
|——————————+—————————+———————————————————————————————————————————————————|
| 12 00 02 | 07
| Check File Command
+——————————+—————————+———————————————————————————————————————————————————+
It sets the File information which has specified name to the Buffer area.
+————————————————————————————————————————————————————————————————————————+
| Start
|
|
|
address |
Data
|
|==========+=========+===================================================|
Implementación MIDI
Contents and remarks
aaaaaaabbbbbbbb = Data Size 1 - 16384 byte |
Contents and remarks
aaaaaaabbbbbbbb = Data Size 1 - 16384 byte |
Contents and remarks
Contents and remarks
Contents and remarks
Contents and remarks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
(ASCII) |
|
|
|
121