Skip to content
Snippets Groups Projects
Commit cc86db4d authored by Zhuolun Lang's avatar Zhuolun Lang
Browse files

Update Machine.java

parent ee566f74
No related branches found
No related tags found
1 merge request!1WIP: Master
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -106,7 +106,7 @@ public class Machine
private int parseReg(String s) throws InvalidInstructionException
{
if (s.length() < 2){
if (s.length() < 3){
throw new InvalidInstructionException();
}
if (s.charAt(0) != 'r'){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment