Lenovo ThinkPad 600X Technical Reference Manual for the ThinkPad 600 - Page 134
Installation Check
View all Lenovo ThinkPad 600X manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 134 highlights
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 je add loop stc jmp eax, dword ptr ds:[bx].@SMBHDR_SIG short @f bx, 1 h ; Next paragraph @b short FindSmapiFin B-58 SMAPI BIOS
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
B-58
SMAPI BIOS