mirror of
https://github.com/hazemKrimi/jack-vm-translator.git
synced 2026-05-01 18:00:27 +00:00
Fix parsing non argument commands
This commit is contained in:
@@ -80,7 +80,7 @@ string translatePush(string filename, Segment segment, int index)
|
||||
output << "M=M+1" << endl;
|
||||
|
||||
return output.str();
|
||||
};
|
||||
}
|
||||
|
||||
string translatePop(string filename, Segment segment, int index)
|
||||
{
|
||||
@@ -146,4 +146,4 @@ string translatePop(string filename, Segment segment, int index)
|
||||
output << "M=D" << endl;
|
||||
|
||||
return output.str();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user