Installation Check
Assembler Language: Real Mode
;
;
FindSmapi
; -----------
;
;
On Entry : None
;
On Exit
: CF = ð .. Find out
;
DX - Segment
;
BX - Pointer to Header
;
;
CF = 1 .. No Smapi BIOS
;
FindSmapi
Proc
Near
push
eax
push
cx
push
si
push
ds
mov
ax, BIOS_SEG
; Fððð Segment
mov
ds, ax
mov
bx, ð
; Start Point
mov
cx, SMB_CAND_CNT
; Total Check Count
mov
eax, 'BMS$'
; Target Strings
@@:
cmp
eax, dword ptr ds:[bx].@SMBHDR_SIG
je
short @f
add
bx, 1ðh
; Next Paragraph
loop
@b
stc
jmp
short FindSmapiFin
ThinkPad 560Z SMAPI BIOS
A-57