aboutsummaryrefslogtreecommitdiff
path: root/tr8as.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-05 07:36:11 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-05 07:36:11 +0100
commitc2b7c1c123955e71fe4be8cd3ad62d71b22986cb (patch)
treef7064d1cc54dc4275d956b9ddac9a8644bbca3ba /tr8as.c
parentf341560b205d3a052d885f73bc6919dc90143b45 (diff)
downloadtr8vm-c2b7c1c123955e71fe4be8cd3ad62d71b22986cb.tar.gz
tr8vm-c2b7c1c123955e71fe4be8cd3ad62d71b22986cb.zip
Assign fields of the structure
Diffstat (limited to 'tr8as.c')
-rw-r--r--tr8as.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tr8as.c b/tr8as.c
index 6d43bdc..9cdb11a 100644
--- a/tr8as.c
+++ b/tr8as.c
@@ -421,7 +421,8 @@ static uint8_t new_ref(As *as, char *word, uint16_t mask, uint16_t addr)
strcpy(as->refs[as->rcnt].label, pt);
as->refs[as->rcnt].mod = mod;
as->refs[as->rcnt].mask = mask;
- as->refs[as->rcnt].loc = as->loc;
+ as->refs[as->rcnt].loc.filename = as->loc.filename;
+ as->refs[as->rcnt].loc.line = as->loc.line;
as->refs[as->rcnt++].addr = addr;
if (as->rcnt == MAX_REFS)