mirror of
https://github.com/KarolS/millfork.git
synced 2024-11-05 00:05:44 +00:00
13 lines
427 B
Markdown
13 lines
427 B
Markdown
[< back to index](../index.md)
|
|
|
|
### A note about LUnix
|
|
|
|
LUnix uses relocatable code, which means that object addresses (`.addr`) are not constants.
|
|
To help with this problem, new constants are defined, with a `.rawaddr` suffix.
|
|
They are not relocated, so to use them, you need to manually relocate them
|
|
by adding `relocation_offset` to their high bytes:
|
|
|
|
pointer p
|
|
p = variable.rawaddr
|
|
p.hi += relocation_offset
|