00 reset, 02 write open, Os read close – Roland VS-890 User Manual

Page 121: 06 write close, 07 check file, Midi implementation

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

MIDI Implementation

Response (result of the Command) List for Disk Access

RgBOonsfl

Remarks

Complete (No Error)

0)

Busy

02

Error: No disk

0.3

Error: File Not Exist

04

Error: Can Not Delete File

05

Error: Can Not Create File

Oh

Error: End of File

07

Error: Read Error

OR

Error: Write Error

09

Error: Can Not Close File

Description of Commands ( the following section )

00 Reset

[ Start j
{ address { Data

Contents and remarks

: 12 00.02 i 30

Reset Ccnmand

It resets the Disk Access, closes all files and clears the Butler.

You should execute the command before any file access.

01 Read Open

Start

address

Daca 1 Contents and remarks

10 00 00

20

7E

file Name - 1

(ASCII)

10 00 Cl

20

7E

File Name - 2

(ASCII)

10 00

с

-2

20

7E

File Name - 3

(ASCII)

10 DC С-3

20

7E

File Name - 4

(ASCII)

10 OC­С4

20

7E

File Name - 5

(ASCII)

IO 00 С5

20

7E

File Name - 6

(ASCII)

10 00 С€

20

7E

File Name - 7

(ASCII)

10 OC­

07

20

7E

File Name - 8

(ASCII)

IO OC­Об

20

7E

File Extension - i

(ASCII)

IO 00 CS

20

7E

File Extension - 2

(ASCII)

10 DC СА

20

7E

File Extension - 3

(ASCII)

! 12 00 02 01

i Read Open Command |

It opens the specified file for reading, sets the reading pointer to the lop of file and sets the

result to the Resuittsame 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

Contents and remarks

10 00 00

20

7E

File Name - 1

(ASCII)

IQ -3001

20

7E

File Name - 2

(ASCII)

10 00 02

20

7E

File Name - 5

(ASCII)

10 00 0Э

20

7E

File Naitffi - 4

(ASCII)

10 00 04

”0

7E

Fils Name - 5

(ASCII)

10 00 05

20

7E

File Name - 6

(ASCII)

10 00 06

20

7E

File Name - 7

(ASCII)

10 00 07

20

7E

Fils Name - 8

(ASCII)

10 00 08

20

7E

File Extension- 1

(ASCII)

10 00 05

20

7E

File Extension- 2

(ASCII)

10 00

Un

20

7E

File Extension- 3

(ASCII)

12 00 02 Ì 02

Write C-pen Command

It opens the specified file for writing, sets the wTiting pointer to the lop of file and sets the

result to the ResulUsame 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, (oinnot open the Reading File and the Writing

File simultaneously) The File Name is based on MS-DOS formal.

03 Read

Concents and rsinarKs

12 DD OD ; Oaaaaaââj Daca Sire
12 00 01

i

Obbbbbbbl

aaaaaaabbbbbbbb = Data Sire 1 -■ 16384 bi'ts

I 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 puls forward the pointer and sets the result to the ResulUsame

as Read Command) Area.

If the remainder of the file data was less than specified size of Bytes, it reads alt data to the

buffer and writes the actual size to the Data Size area, if you read the data from over the end

ot file, the error occurs.

04 Write

00 00 ! Оаааааза! Daca Sirs
00 01 ! Obbbbbbfc

nts and remarks

I = Data Sire 1 - 163B4 byte

12 OD 02 1 04

I Write Ccisnand

It w'rites 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 ResulUsame as

Write Command) Area.

os Read Close

Start [

address } Data

12 OS 02 ! 05

I

Contents and remarks

I Read Close Command

It closes the File which is o|>ened for reading, and sets (he result to the Result (same as Read

Close Command) area.

06 Write Close

Data

Oc

Contents and remarks

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

Contents and remarks

10

OC

00

2C-

7E

File Name - 1

(ASCII'

10

•oc

01

2C

7E

File Name - 2

(ASCII:

10

oc

02

20

7E

File Name - 3

(ASCII)

10

03

2C

7E

File Name - 4

(ASCII)

10

oc

04

2C

7E

File Name - 5

(ASCII)

ID

oc

05

20

7E

File Name - 6

(ASCII;

10

oc

06

2C

7E

File Name - 7

(ASCII:

10

OG 07

2C

7E

File Na.me - S

(ASCII)

10

co

08

2C

- 7E

File Extension - 1

(ASCII)

10

00

03

20

7E

File Extension - 2

(ASCII)

10

0-C

Oh

2C

7E

File Extension - 3

(ASCII)

0-0

02

07

Check File Command

It sets the File information which has specified name

in

the Buffer area.

Start I

address ! Data

Contents and remarks

121

Advertising