diff options
author | Benedikt Böhm <bb@xnull.de> | 2009-07-04 11:16:37 +0200 |
---|---|---|
committer | Benedikt Böhm <bb@xnull.de> | 2009-07-04 11:16:37 +0200 |
commit | 690644bb293d7de12abddcaaca75f8f6c6dad24e (patch) | |
tree | 94f5126a5ebe33b3d862d5aa6bc15d1f9a3fcc83 /src/back | |
parent | 1647e844ccff4511491ce7f2c9acf088b3e50002 (diff) | |
download | swppy-690644bb293d7de12abddcaaca75f8f6c6dad24e.tar.gz swppy-690644bb293d7de12abddcaaca75f8f6c6dad24e.tar.xz swppy-690644bb293d7de12abddcaaca75f8f6c6dad24e.zip |
cleanup
Diffstat (limited to 'src/back')
-rw-r--r-- | src/back/tac.py | 8 |
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 |