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.

<strong>IPC<strong>@CHIP</strong></strong> <strong>Documentation</strong> Index<br />

External Disk Drive<br />

External Disk Interface - <strong>SC12</strong> <strong>@CHIP</strong>-<strong>RTOS</strong> <strong>V1.10</strong><br />

Here is the interface definition for an external disk B: drive . This interface allows you to add an external B:<br />

drive. This drive must be block (sector) oriented. Each sector should be 512 bytes long. The application must<br />

provide a software interrupt 0xB1 function to read and write these sectors on this drive.<br />

Maximum disk size is about 2 Gigabytes.<br />

● Interrupt_0xB0_function_0x01:_Install External Disk<br />

● Interrupt_0xB0_function_0x02:_Deinstall External Disk<br />

Interrupt 0xB0 service 0x01: Install External Disk<br />

This function will logically install a B: drive.<br />

Prior to this call the application must provide a disk read/write function installed at interrupt 0xB1. This<br />

installed handler function should expect:<br />

Parameters<br />

AH<br />

AX 1 for write, 0 for read.<br />

BX,DX Sector number (BX is MSH of unsigned long)<br />

CX Number of sectors to read/write<br />

ES:DI Segment:Offset of memory area to read/write<br />

The handler should return 0 in AX if OK.<br />

0x01<br />

BX,DX<br />

An unsigned long with the total number of sectors. BX holds high word.<br />

Return Value<br />

Top of list<br />

Index page<br />

AX is 0 if OK.<br />

Page 386 / 400

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

Saved successfully!

Ooh no, something went wrong!