@@:
;
Find Smapi Head
mov
dx, BIOS_SEG
;
Calculate Checksum.. next.
pushf
; Save direction flag
cld
; Clear it
mov
si, bx
xor
ax, ax
movzx
cx,byte ptr ds:[bx].@SMBHDR_LEN
@@:
lodsb
add
ah, al
loop
@b
popf
; Restore Direction flags
cmp
ah, 1
; Checksum is OK?
cmc
FindSmapiFin:
pop
ds
pop
si
pop
cx
pop
eax
ret
FindSmapi
Endp
SMAPI BIOS
B-59
Содержание ThinkPad 770
Страница 1: ...05L1739 S05L 1739 00...
Страница 6: ...vi...
Страница 10: ...x Preface...
Страница 133: ...Function Declaration C Language Smapi BIOS function typedef WORD far SMB FPINPARM FPOUTPARM SMAPI BIOS B 57...
Страница 148: ...IBM Part Number 05L1739 Printed in the United States of America...