1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-20 18:16:35 +00:00

Fixed return dispatch returns on LUnix. Added non-relocated address constants.

This commit is contained in:
Karol Stasiak
2018-06-10 01:56:04 +02:00
parent 8a417768b8
commit 278cbcec63
5 changed files with 72 additions and 21 deletions
+11
View File
@@ -81,6 +81,17 @@ After putting it on a disk, the file can be run with:
Currently, multipart BBC Micro programs are not supported.
### 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
## Adding a custom platform
Every platform is defined in an `.ini` file with an appropriate name.