Copied incorrectly

This commit is contained in:
Danny Staple 2022-01-02 12:09:21 +00:00 committed by GitHub
parent e1e5e2a3ee
commit ac1cb9937d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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