BX
Word address (zero based)
CX
Word
count
DX
ffffh
ES:DI
Destination
pointer
Return registers:
Carry flag cleared if successful
AX
Word
read
Carry flag set if error
AL
Error
code
Error Code
Meaning
ffh
Unknown
error
01h
Function not implemented
02h
Defective serial EEPROM
03h
Illegal
access
Comments:
This function reads multiple words from the
user area of the serial EEPROM.
Programming example:
/* Read 10 words starting at word 5 */
unsigned int far *seeDataPtr = new unsigned int[10];
/* Allocate storage*/
/* Inline assembly code for Borland C++ 3.1 */
asm {
mov
ax,0fc02h
mov
bx,05h
/* Read starts at
word 5 */
mov
cx,10
/* Read 10 words */
mov
dx,0ffffh
les
di,seeDataPtr
int
17h
}
Write multiple words to the serial EEPROM
Function: fch
Subfunction: 03h
Purpose:
To write multiple words to the on–board serial
EEPROM.
Calling registers:
AH
fch
AL
03h
BX
Word address (zero based)
CX
Word
count
DX
ffffh
DS:SI
Source
pointer
Return registers:
Carry flag cleared if successful
Carry flag set if error
AL
Error
code
Error Code
Meaning
ffh
Unknown
error
01h
Function not implemented
02h
Defective serial EEPROM
03h
Illegal
access
Comments:
This function writes multiple words to the
user area of the serial EEPROM.
Programming example:
107