Skip to content

Commit

Permalink
bugfix for logisim file update
Browse files Browse the repository at this point in the history
Fix the bug that there will be old data remaining at the end of the rom
  • Loading branch information
WuSiYu committed Apr 21, 2020
1 parent 9ed733d commit a918dca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mars2Logisim.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def lines_to_stream(file):
rom = rom[0]
contents = rom.text.split('\n')
contents[1] = ' '.join(ROMs_contents[i])
contents[2] = ''
del contents[3:]
rom.text = '\n'.join(contents)

DOMTree.write(logisim_xml)
Expand Down

0 comments on commit a918dca

Please sign in to comment.