douggilliland / R32V2020

My 32-bit RISC CPU for smallish FPGAs
GNU General Public License v3.0
17 stars 3 forks source link

Duplicate labels not being detected #51

Closed douggilliland closed 5 years ago

douggilliland commented 5 years ago

@mjgpy3 The assembler should thrown an error if the source code tries to add another label that already exists.

label1: add r8,r0,r0 label1: add r9,r0,r0

Should throw an error with the second label1 since the label is already used.

This comes into play when I copy-paste code and forget to update the label.

Example Code in C075-Dup_Labels.asm