From 8216c6f489050a3a3964e8536266ab195f3ec757 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 11 Apr 2021 22:03:55 -0400 Subject: [PATCH] linker was relocating absolute entries (ie xxx equ $1234 ; ent xxx). $20 is the bit in the on-disk symbol table for an absolute entry, linkabsbit (%0000_0100_0000_0000) is the correct bit in memory. --- src/link/linker.1.s | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/link/linker.1.s b/src/link/linker.1.s index 682ebdc..082cc75 100644 --- a/src/link/linker.1.s +++ b/src/link/linker.1.s @@ -2464,7 +2464,7 @@ relocatefinal sta [tempptr],y sta omfoff2 lda foundlable+o_labtype - and #$0020 + and #linkabsbit jne :clc lda #$02 sta omfbytes @@ -2549,7 +2549,7 @@ relocatefinal sta [tempptr],y lda foundlable+o_labtype - and #$0020 + and #linkabsbit jne :clc bit interseg @@ -2690,7 +2690,7 @@ relocatefinal sta [tempptr],y rep $20 lda foundlable+o_labtype - and #$0020 ;absolute lable? + and #linkabsbit ;absolute lable? jne :clc bit interseg @@ -2791,7 +2791,7 @@ relocatefinal sta [tempptr],y rep $20 lda foundlable+o_labtype - and #$0020 + and #linkabsbit jne :clc bit interseg @@ -2886,7 +2886,7 @@ relocatefinal sta [tempptr],y rep $20 lda foundlable+o_labtype - and #$0020 + and #linkabsbit jne :clc bit interseg @@ -3048,7 +3048,7 @@ relocatefinal sta [tempptr],y rep $20 lda foundlable+o_labtype - and #$0020 + and #linkabsbit jne :clc lda #$f5 @@ -3103,7 +3103,7 @@ relocatefinal sta [tempptr],y lda foundlable+o_labtype - and #$0020 + and #linkabsbit jne :clc lda #$f5