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

Please discuss general Delphi programming topics here.

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

Postby bahadir » November 9th, 2003, 3:41 pm

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 /////
the answer is on the box
bahadir
Member
Member
 
Posts: 1
Joined: November 9th, 2003, 2:33 pm
Location: Trurkey

Postby Kambiz » November 9th, 2003, 5:09 pm

Code: Select all
procedure ieinit(ioport, myaddr, setting :integer);
asm
  DB $9A
  DB $00
  DB $04
  DB $00
  DB $D0
end;
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Postby Kambiz » November 9th, 2003, 5:12 pm

By the way, I guess the former program was a DOS, so it should not work on Windows.
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron