Storing constants in program memory not working?
Posted: 30 Dec 2019 21:13
Hi,
I'm trying to store some constants in program memory using the memory type specifier "code" but it doesn't seem to be working. I'm new to using the MikroE Pascal compiler, so I'm not sure if I'm doing it correctly or not.
Here is my code sample:
Based on the compiler help file. It seems that these should be stored in program memory, but they are not there when I compile the code.
How would I store these in program memory? Thanks!
I'm trying to store some constants in program memory using the memory type specifier "code" but it doesn't seem to be working. I'm new to using the MikroE Pascal compiler, so I'm not sure if I'm doing it correctly or not.
Here is my code sample:
Code: Select all
const
MAGIC = $55; code;
VERSION = '1.0'; code;
DATE = '2019-12-27'; code;
How would I store these in program memory? Thanks!