summaryrefslogtreecommitdiffstats
path: root/src/back/tac.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/back/tac.py')
-rw-r--r--src/back/tac.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/back/tac.py b/src/back/tac.py
index 20b14d9..03303cf 100644
--- a/src/back/tac.py
+++ b/src/back/tac.py
@@ -21,12 +21,13 @@ Op.OR = Op("OR") # x = x OR y
Op.NOT = Op("NOT") # x = !x
Op.MINUS = Op("MINUS") # x = -x
+Op.MOV = Op("MOV") # x = y
Op.STORE = Op("STORE") # MEM[x] = y
Op.LOAD = Op("LOAD") # y = MEM[x]
-Op.MOV = Op("MOV") # x = y
+Op.PUSH = Op("PUSH") # push x
+Op.POP = Op("POP") # pop x
Op.CMP = Op("CMP") # Z = x == y, N = x < y
-
Op.EQ = Op("EQ") # x = Z
Op.NE = Op("NE") # x = !Z
Op.LT = Op("LT") # x = N
@@ -36,9 +37,6 @@ Op.GT = Op("GT") # x = !Z && !N
Op.BEZ = Op("BEZ") # if x == 0 goto y
Op.JMP = Op("JMP") # goto x
-
-Op.PUSH = Op("PUSH") # push x
-Op.POP = Op("POP") # pop x
Op.CALL = Op("CALL") # call x return in y
Op.RETURN = Op("RETURN") # return x