Lenovo ThinkPad 560X TP 560Z Technical Reference Manual - Page 119
Installation Check
View all Lenovo ThinkPad 560X manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 119 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 ThinkPad 560Z SMAPI BIOS A-57
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