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.

Parameters<br />

AH<br />

DS:SI<br />

DL<br />

0x47<br />

Pointer to a 64 byte memory area to receive null terminated path of current working directory (CWD).<br />

Drive number, 0 for current, 1 for A, ..<br />

Return Value<br />

Comments<br />

Success: Carry flag cleared, Buffer at [DS:SI] contains CWD path.<br />

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

Each task has it's own current working directory. When a program starts, its current drive and working<br />

directory will be set to the drive and directory that was current before the program started.<br />

Related Topics<br />

Top of list<br />

Index page<br />

Set current working directory<br />

Interrupt 0x21 service 0x48: Allocate Memory<br />

Parameters<br />

AH<br />

BX<br />

Allocates memory for the calling process.<br />

0x48<br />

Size counted in paragraphs<br />

Return Value<br />

Comments<br />

Success:<br />

Carry flag cleared, AX holds the segment of the memory area<br />

Failure:<br />

Carry flag set due to not enough memory available.<br />

AX = 0.<br />

BX holds the size of the largest free block available expressed by paragraph count.<br />

Page 270 / 400

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

Saved successfully!

Ooh no, something went wrong!