Page 1 of 1

Constants within asm statement

Posted: 26 Apr 2007 08:29
by JohannesH
When using asm statement to include some assembly language within the Pascal program it would be very useful if Constants defined before could be used.

E.g.:

asm
...
SBRS R16,TWINT
...
end;

This gives a compiler error that TWINT is unknown, BUT it is defined as a constant with value $07.
So instead you have to use

asm
...
SBRS R16,$07
...
end;

This works but I cannot see any good reason why constants should not be allowed there.

Thank You
Johannes