Hi, I've been trying to convert allegro.h into a Pascal unit. Has anyone already done this? One of the problems I'm having is translating the asm statements from C to PASCAL. I keep getting the compiler error: allegro.pas(1204) Error: cannot reload integer constant operand in `asm'. I have absolutely no idea what this means. The offending code is as follows: asm ('call *%3' : '=a' (result) { result in eax } : 'd' (bmp), { bitmap in edx } '0' (line), { line number in eax } 'r' (bmp^.write_bank) { the bank switch routine } ); All I've done is changed all double quotes to single quotes and changed -> to ^. Could you please cc any replies to me as I am not subscribed to this mailing list despite several requests. thanks russell
participants (3)
-
Orlando Llanes -
Peter Gerwinski -
Thamm, Russell