Help needed with assembler code..
Posted: Fri Jul 30, 2004 3:50 pm
Can anyone help make the below code work?
It seems that Delphi no longer understand "inline"...? Anyhow I'm no assembler guy AT ALL, so I can't make it work...
The function is taken from the library SendKeys that I found somewhere on the net, and the code is part of Delphi Developers Guide by Steve Teixeira
Code: Select all
function MakeWord(L, H: Byte): Word;
{ macro creates a word from low and high bytes }
inline(
$5A/ { pop dx }
$58/ { pop ax }
$8A/$E2); { mov ah, dl }
The function is taken from the library SendKeys that I found somewhere on the net, and the code is part of Delphi Developers Guide by Steve Teixeira