Dewet Diener
2003-10-15 13:16:25 UTC
Hi there
I'm hitting my head against a wall; I'm trying to access LONGREALs in a
assembler function, but I keep on hitting error 501: addressing mode
not allowed. This happens when I remove the "VAR" keyword from a
LONGREAL parameter in the function definition.
The following works as expected:
PROCEDURE E*(VAR r: LONGREAL);
CODE {SYSTEM.i386}
MOVE EAX, r[EBP]
END E;
Replacing the first line as follows stops compilation with error 501:
PROCEDURE E*(r: LONGREAL);
Could someone please point me in the right direction?
Thanks,
Dewet
I'm hitting my head against a wall; I'm trying to access LONGREALs in a
assembler function, but I keep on hitting error 501: addressing mode
not allowed. This happens when I remove the "VAR" keyword from a
LONGREAL parameter in the function definition.
The following works as expected:
PROCEDURE E*(VAR r: LONGREAL);
CODE {SYSTEM.i386}
MOVE EAX, r[EBP]
END E;
Replacing the first line as follows stops compilation with error 501:
PROCEDURE E*(r: LONGREAL);
Could someone please point me in the right direction?
Thanks,
Dewet