| View previous topic :: View next topic |
| Author |
Message |
bahadir Member
Joined: 09 Nov 2003 Posts: 1 Location: Trurkey
|
Posted: 09/11/03 15:41 Post subject: i need to convert a pascal code to delphi..please help |
|
|
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 |
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 306
|
Posted: 09/11/03 17:09 Post subject: |
|
|
| Code: | procedure ieinit(ioport, myaddr, setting :integer);
asm
DB $9A
DB $00
DB $04
DB $00
DB $D0
end; |
|
|
| Back to top |
|
 |
Kambiz Administrator

Joined: 07 Mar 2003 Posts: 306
|
Posted: 09/11/03 17:12 Post subject: |
|
|
| By the way, I guess the former program was a DOS, so it should not work on Windows. |
|
| Back to top |
|
 |
|