Search found 2 matches

by kerrtronics
30 Dec 2019 21:21
Forum: mikroPascal PRO for AVR General
Topic: Storing constants in program memory not working?
Replies: 2
Views: 2456

Storing constants in program memory not working?

HI, I'm trying to store some constants in program memory using the memory specifier "code" as described in the compiler help but it doesn't seem to be working. Here is my code: const MAGIC = $55; code; VERSION = '1.0'; code; DATE = '2019-12-27'; code; When I compile my code I don't see these in prog...
by kerrtronics
30 Dec 2019 21:13
Forum: mikroPascal PRO for AVR General
Topic: Storing constants in program memory not working?
Replies: 0
Views: 1636

Storing constants in program memory not working?

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: const MAGIC = $55; code; VERSION = '1.0'; code; DA...

Go to advanced search