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.
This commit is contained in:
Kelvin Sherlock 2021-04-11 22:03:55 -04:00
parent c9d2c39b5c
commit 8216c6f489
1 changed files with 7 additions and 7 deletions

View File

@ -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