Skip to content

Commit ee883d9

Browse files
committed
Write C_LABEL and C_IF instructions to make BasicLoop green
1 parent 4b8ad63 commit ee883d9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/translator

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ while parser.has_more_commands?
2323
parser.arg1,
2424
parser.arg2
2525
)
26+
when Parser::C_LABEL
27+
code_writer.write_label(parser.arg1)
28+
when Parser::C_IF
29+
code_writer.write_if(parser.arg1)
2630
end
2731
end

spec/acceptance/examples/BasicLoop/.pending

Whitespace-only changes.

0 commit comments

Comments
 (0)