diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> | 2020-01-01 12:59:47 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.lonestar.org> | 2020-01-01 12:59:47 -0500 |
| commit | 0a1fdf45794b0f00be44bd48113daea90aace65e (patch) | |
| tree | ab4d251446589d87231d3b2b9bec1671dba38394 | |
| parent | 4d42144c4dc35a8e7e7ce544e90b34eb440ed1c5 (diff) | |
Calculate label positions relative to load address
| -rw-r--r-- | asm.myr | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -373,8 +373,8 @@ const main = { match std.htget(labels, l) | `std.None: die_rewrite(l, linum) | `std.Some(addr): - buf[buf_pos] |= addr & 0x0f00 - buf[buf_pos + 1] |= addr & 0xff + buf[buf_pos] |= ((addr + 0x200) & 0x0f00) >> 8 + buf[buf_pos + 1] |= (addr + 0x200) & 0xff ;; ;; ;; |