Page 1 of 1

i need to convert a pascal code to delphi..please help

PostPosted: November 9th, 2003, 3:41 pm
by bahadir
hi
i have a pascal code written below..is there anyone can change this code to delphi? i cannot find the matching command of 'inline'. this procedure uses to send command to an external device by i/o card.
thanx
////// here is the procedure to be concerted to delphi ///////

Procedure ieinit(ioport,myaddr,setting:integer);
begin inline ($9A/$00/$04/$00/$D0); end; { call D000:0400 }

///// End of the procedure /////

PostPosted: November 9th, 2003, 5:09 pm
by Kambiz
Code: Select all
procedure ieinit(ioport, myaddr, setting :integer);
asm
  DB $9A
  DB $00
  DB $04
  DB $00
  DB $D0
end;

PostPosted: November 9th, 2003, 5:12 pm
by Kambiz
By the way, I guess the former program was a DOS, so it should not work on Windows.