pop
ds
}
Return serial EEPROM size
Function: fch
Subfunction: 04h
Purpose:
To obtain the size of the on–board serial EEPROM.
Calling registers:
AH
fch
AL
04h
DX
ffffh
Return registers:
Carry flag cleared if successful
AX
Size of the serial EEPROM (in words)
BX
Size available to user (in words)
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 returns the size (in words) 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.
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
}
85
Содержание XE-800
Страница 18: ...Figure 2 1 XE 800 SBC component diagram top 18 ...
Страница 19: ...Figure 2 2 XE 800 SBC component diagram bottom 19 ...
Страница 20: ...Figure 2 3 XE 800 SBC dimensions 20 ...
Страница 89: ...MOV AX 0fb0bh MOV DX 0ffffh INT 17h MOV aData AL if aData 1 printf U1 jumper is ON n 89 ...