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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Number of bytes to write<br />

DS:DX<br />

Pointer to the source data buffer.<br />

Return Value<br />

Comments<br />

Success: Carry flag cleared, AX = number of bytes written into the file<br />

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

AX=5: Access denied<br />

AX=6: Invalid file handle<br />

Requesting zero bytes written to file (CX=0) truncates the file at the current position.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Create New File Handle<br />

Open Existing File<br />

Read from File<br />

Set Current File Position<br />

Interrupt 0x21 service 0x41: Delete File<br />

Parameters<br />

AH<br />

Deletes a file. Wildcards are not allowed.<br />

0x41<br />

DS:DX<br />

Pointer to null terminated file name and path.<br />

Return Value<br />

Comments<br />

Success: Carry flag is cleared<br />

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

AX=2: File not found<br />

AX=5: Access denied<br />

Files with read only attribute cannot be deleted.<br />

Related Topics<br />

Create New File Handle<br />

Page 266 / 400

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

Saved successfully!

Ooh no, something went wrong!