diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-05 07:36:11 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-05 07:36:11 +0100 |
commit | c2b7c1c123955e71fe4be8cd3ad62d71b22986cb (patch) | |
tree | f7064d1cc54dc4275d956b9ddac9a8644bbca3ba /tr8as.c | |
parent | f341560b205d3a052d885f73bc6919dc90143b45 (diff) | |
download | tr8vm-c2b7c1c123955e71fe4be8cd3ad62d71b22986cb.tar.gz tr8vm-c2b7c1c123955e71fe4be8cd3ad62d71b22986cb.zip |
Assign fields of the structure
Diffstat (limited to 'tr8as.c')
-rw-r--r-- | tr8as.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |