mirror of
https://github.com/hazemKrimi/jack-vm-translator.git
synced 2026-05-01 18:00:27 +00:00
Translate method refactoring
This commit is contained in:
+12
-2
@@ -10,8 +10,7 @@ enum Segment
|
||||
POINTER,
|
||||
};
|
||||
|
||||
enum Operation
|
||||
{
|
||||
enum NoArgumentCommand {
|
||||
ADD,
|
||||
SUB,
|
||||
NEG,
|
||||
@@ -22,3 +21,14 @@ enum Operation
|
||||
OR,
|
||||
NOT
|
||||
};
|
||||
|
||||
enum OneArgumentCommand {
|
||||
LABEL,
|
||||
GOTO,
|
||||
IFGOTO,
|
||||
};
|
||||
|
||||
enum TwoArgumentCommand {
|
||||
PUSH,
|
||||
POP
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user