mirror of https://github.com/marketideas/qasm.git
Merge pull request #55 from ksherlock/ext_abs
fix absolute external labels
This commit is contained in:
commit
bdbf17024e
|
@ -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
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
|
||||
rel
|
||||
ent const
|
||||
const equ $123456 ; only 24-bit value saved in rel dictionary.
|
||||
|
||||
db const
|
||||
dw const
|
||||
adr const
|
||||
adrl const
|
||||
ddb const
|
||||
|
||||
sav 3009-abs-ent-1.L
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
rel
|
||||
ext const
|
||||
|
||||
db const
|
||||
dw const
|
||||
adr const
|
||||
adrl const
|
||||
ddb const
|
||||
|
||||
sav 3009-abs-ent-2.L
|
|
@ -0,0 +1,9 @@
|
|||
* link file
|
||||
* generated file should not have any OMF relocation records.
|
||||
|
||||
ovr all
|
||||
asm 3009-abs-ent-1.S
|
||||
asm 3009-abs-ent-2.S
|
||||
lnk 3009-abs-ent-1.L
|
||||
lnk 3009-abs-ent-2.L
|
||||
sav 3009-abs-ent
|
Loading…
Reference in New Issue