Constants within asm statement

Post your requests and ideas on the future development of mikroPascal for AVR.
Post Reply
Author
Message
JohannesH
Posts: 68
Joined: 23 Apr 2007 07:51

Constants within asm statement

#1 Post by JohannesH » 26 Apr 2007 08:29

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

Post Reply

Return to “mikroPascal for AVR Wish List”