diff options
Diffstat (limited to 'asm.c')
| -rw-r--r-- | asm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -266,7 +266,7 @@ tpu_validate(struct tpu *tpu) for (i = 0; i < TPU_MAX_INST; i++) { if (tpu->insts[i].ops[0].type == OP_LABEL) { - dst = label_map_get(&tpu->labels, + dst = label_map_get(&tpu->label_map, tpu->insts[i].ops[0].val.label); if (dst == TPU_MAX_INST) die("load: tpu X%lu Y%lu, label '%s' not defined", @@ -394,9 +394,9 @@ tis_load(struct tis *tis, const char *filepath) tok_next_in(&tokenizer, TOK_NL, -1); break; case TOK_LABEL: - if (!label_map_add(&tpu->labels, + if (!label_map_add(&tpu->label_map, tokenizer.tokstr, tpu->inst_cnt)) - die("load: line %lu, duplicate label", + die("load: line %lu, duplicate label (pos)", tokenizer.lineno); break; case TOK_NL: |
