01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Top of list<br />

Index page<br />

Interrupt 0x21 service 0x3F: Read from File<br />

Parameters<br />

AH<br />

BX<br />

CX<br />

Reads a number of bytes from a file, the handle of which is specified in BX.<br />

0x3F<br />

File handle<br />

Number of bytes to read<br />

DS:DX<br />

Pointer to the destination data buffer.<br />

Return Value<br />

Success: Carry flag cleared, AX = number of bytes read into buffer from file<br />

Failure: Carry flag set, AX = error code:<br />

AX=5: Access denied<br />

AX=6: Invalid file handle<br />

Related Topics<br />

Top of list<br />

Index page<br />

Create New File Handle<br />

Open Existing File<br />

Write to File<br />

Set Current File Position<br />

Interrupt 0x21 service 0x40: Write to File<br />

Parameters<br />

AH<br />

BX<br />

CX<br />

Writes a number of bytes to a file, the handle of which is specified in BX.<br />

0x40<br />

File handle<br />

Page 265 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!