Execute HQ9+: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 355: Line 355:
$9 -> beer(99), Acc;
$9 -> beer(99), Acc;
$+ -> inc(Acc);
$+ -> inc(Acc);
_ -> io:format("Invalid instruction: ~w", [Instruction]),
_ -> io:format("Invalid instruction: ~c~n", [Instruction]),
Acc
Acc
end.
end.