Calling Convention Pseudo Code
The following describes the calling convention using pseudo code.
Assembler Language
InputParm
SMB_INPARM
< >
OutputParm
SMB_OUTPARM
< >
16-bit
push
ds
mov
ax, offset OutputParm
push
ax
push
ds
mov
ax, offset InputParm
push
ax
call
dword ptr SmapiBios
add
sp, 8
32-bit
push
ds
mov
eax, offset OutputParm
push
eax
push
ds
mov
eax, offset InputParm
push
eax
call
fword ptr SmapiBios
add
sp, 16
C Language
typedef WORD (far SMB)(FPINPARM, FPOUTPARM) ;
SMB
SmapiBios ;
INPARM
InputParm ;
OUTPARM
OutputParm ;
WORD
RC ;
RC = SmapiBios(&InputParm, &OutputParm) ;
B-10 SMAPI BIOS
Summary of Contents for ThinkPad 600
Page 1: ......
Page 6: ...vi...
Page 10: ...x Preface...
Page 58: ...2 36 System Board...
Page 72: ...3 14 Subsystems...
Page 76: ...A 4...
Page 142: ...C 2 SMAPI BIOS...