Make @ relative to the start of a ds even at link time

Fix #737
This commit is contained in:
Rangi
2021-02-14 20:53:44 -05:00
committed by Eldred Habert
parent 2bc12447e2
commit ee20d9010e
13 changed files with 74 additions and 72 deletions

14
test/asm/ds-@.asm Normal file
View File

@@ -0,0 +1,14 @@
SECTION "test fixed", ROM0[0]
FixedStart:
ds 8, (@ - FixedStart) * 2 + zero
ds 8, (@ - FixedStart) * 2 + zero
SECTION "test floating", ROM0
FloatingStart:
ds 8, (@ - FloatingStart) * 2 + zero
ds 8, (@ - FloatingStart) * 2 + zero
SECTION "zero", ROM0[0]
zero:

0
test/asm/ds-@.err Normal file
View File

0
test/asm/ds-@.out Normal file
View File

BIN
test/asm/ds-@.out.bin Normal file

Binary file not shown.