Lenovo ThinkPad 560 TP 560Z Technical Reference Manual - Page 71
Calling Convention Pseudo Code, Assembler Language
View all Lenovo ThinkPad 560 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 71 highlights
Calling Convention Pseudo Code The following describes the calling convention using pseudo code. Assembler Language InputParm OutputParm SMB_INPARM SMB_OUTPARM < > 16-bit push mov push push mov push call add ds ax, offset OutputParm ax ds ax, offset InputParm ax dword ptr SmapiBios sp, 8 32-bit push mov push push mov push call add ds eax, offset OutputParm eax ds eax, offset InputParm eax fword ptr SmapiBios sp, 16 ThinkPad 560Z SMAPI BIOS A-9
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
ThinkPad 560Z SMAPI BIOS
A-9