fix an error while raising an invalid instruction error
This commit is contained in:
parent
9861fd06ac
commit
55bee3f66c
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ def assemble(text_program):
|
|||
raise RuntimeError("Set value out of range")
|
||||
assembled[-1] |= value
|
||||
else:
|
||||
raise RuntimeError("Unknown instruction:" + instruction)
|
||||
raise RuntimeError("Unknown instruction:" + instruction[0])
|
||||
assembled[-1] |= delay << 8
|
||||
# print(hex(assembled[-1]))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue