Copied incorrectly
This commit is contained in:
parent
e1e5e2a3ee
commit
ac1cb9937d
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ def assemble(text_program):
|
||||||
if len(instruction) > 2:
|
if len(instruction) > 2:
|
||||||
try:
|
try:
|
||||||
assembled[-1] |= CONDITIONS.index(instruction[1]) << 5
|
assembled[-1] |= CONDITIONS.index(instruction[1]) << 5
|
||||||
raise SyntaxError(f"Invalid jmp condition {instruction[1]}")
|
except ValueError:
|
||||||
|
raise SyntaxError(f"Invalid jmp condition {instruction[1]}")
|
||||||
|
|
||||||
elif instruction[0] == "wait":
|
elif instruction[0] == "wait":
|
||||||
# instr delay p sr index
|
# instr delay p sr index
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue