1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-25 21:29:25 +00:00
millfork/docs/api/lunix-programming-guide.md

13 lines
431 B
Markdown
Raw Normal View History

2019-07-15 12:21:50 +00:00
[< back to index](../doc_index.md)
2018-07-01 22:45:53 +00:00
### 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