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.

Parameters<br />

AH<br />

CX<br />

0x3C<br />

File attributes (bit field):<br />

B0 - Read Only<br />

B1 - Hidden File<br />

B2 - System File<br />

B5 - Archive Flag<br />

DS:DX<br />

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

Return Value<br />

Comments<br />

Success: Carry flag cleared, AX = file handle<br />

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

AX=2: Path not found<br />

AX=3: File name length exceeded 147 character limit<br />

AX=4: Too many files open<br />

AX=5: Invalid file name or access denied<br />

Files are always opened in a non-sharing mode.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Open Existing File<br />

Close File Handle<br />

Get/Set File Date/Time<br />

Interrupt 0x21 service 0x3D: Open an Existing File<br />

Parameters<br />

AH<br />

AL<br />

DS:DX<br />

Opens an existing file.<br />

0x3D<br />

Open mode:<br />

AL=0: Open for read<br />

AL=1: Open for write<br />

AL=2: Open for read and write<br />

Page 263 / 400

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

Saved successfully!

Ooh no, something went wrong!