Return Serial Eeprom Size - Octagon Systems XE–700 Reference Manual

Table of Contents

Advertisement

}

Return serial EEPROM size

Function:
Subfunction:
Purpose:
Calling registers:
Return registers:
Error code
Comments:
Programming example:
unsigned int seeUserSize;
/* Inline assembly code for Borland C++ 3.1*/
asm {
mov ax,0fc04h
mov dx,0ffffh
int 17h
mov seeUserSize,bx
}
fch
04h
To obtain the size (bytes) of the on–board serial
EEPROM.
AH
fch
AL
04h
DX
ffffh
Carry flag cleared if successful
AX
Size of the serial EEPROM (1536 + 512)
BX
Size available to user (512 bytes)
Carry flag set if error
AL
Error code
Meaning
ffh
Unknown error
01h
Function not implemented
02h
Defective serial EEPROM
03h
Illegal access
This function returns the size (in bytes) of the
serial EEPROM. Since the user cannot access all
of the serial EEPROM, this function determines
how much space is available to the user. This
avoids the user from accessing unavailable
addresses.
87

Advertisement

Table of Contents
loading

Table of Contents