Forums » Programming with the ECS » Oberon »
SYSTEM.ADDRESS for SYSTEM.BIT etc.
Added by Paul Reed over 2 years ago
Hi Florian,
A quick question, in Oberon-07 I'm accustomed to just declaring a constant address (as an INTEGER) and then using SYSTEM.GET/PUT and SYSTEM.BIT on it.
In ecs, I presumably need to generate a constant address with type SYSTEM.ADDRESS, otherwise I get e.g. "error: memory bit" when using SYSTEM.BIT.
Is there any trick here, or do I need to define an assembler file with these constants?
i.e. what is the "approved" way of doing this? I looked in the libraries and didn't find any .mod using SYSTEM.
Cheers,
Paul
Replies (2)
RE: SYSTEM.ADDRESS for SYSTEM.BIT etc. - Added by Florian Negele over 2 years ago
Hi Paul
Thanks for your message. That is a compiler bug which is triggered by using only constant arguments and will be fixed in the next version. For the meantime, put one of the arguments to your call of SYSTEM.BIT into a variable. Sorry for the inconveniences.
Regards
Florian
RE: SYSTEM.ADDRESS for SYSTEM.BIT etc. - Added by Paul Reed over 2 years ago
No worries, that's fine, thanks for the speedy reply!