Skip to content

Commit

Permalink
Keep original rom size when overwriting the contents
Browse files Browse the repository at this point in the history
  • Loading branch information
mossprescott committed Mar 25, 2024
1 parent a9080d6 commit 5a1358b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nand/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def init_rom(self, instructions):
size, # @size (which is the address of this instruction)
0b111_0_000000_000_111, # JMP
]
self._rom = contents
self._rom[:len(contents)] = contents
# TODO: surprisingly, this is not faster (no apparent effect):
# self._rom = array.array('H', contents)

Expand Down

0 comments on commit 5a1358b

Please sign in to comment.