Skip to content

Commit

Permalink
Assembler: fix issue #8 when using same label multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
adumont committed Apr 22, 2018
1 parent a28bf8e commit cb8fa93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logisim/prog/assembler
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ END {

cat $LABELFILE | while read LABEL ADDR
do
sed -i -e "s/ $LABEL / $ADDR /" $TMPFILE
sed -i -e "s/ $LABEL / $ADDR /" $BINFILE
sed -i -e "s/ $LABEL / $ADDR /g" $TMPFILE
sed -i -e "s/ $LABEL / $ADDR /g" $BINFILE
done

cat $TMPFILE
Expand Down

0 comments on commit cb8fa93

Please sign in to comment.