Q: I have an OBJ file that has several assembler routines compiled into it. I wouldn't want to have to rewrite them. Is there a way to use them in a Delphi app?
A: You don't indicate if these return values or not. In Pascal this matters.
If they don't, include the following near the front of your code:
Procedure TurnOn; External;
Procedure TurnOff; External;
If they return values, use:
Function TurnOn: Integer; External;
Function TurnOff: Integer; External;
Replace Integer with whatever datatype they return.
In either case follow that with:
{$L filename.obj}
to link in the obj file.