annotate python/x86.py @ 157:8f3924b6076e

Added some code generator things
author Windel Bouwman
date Sun, 03 Mar 2013 18:14:35 +0100
parents
children 9683a4cd848f
rev   line source
157
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
1 import ppci
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
2
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
3 class X86CodeGen:
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
4 def __init__(self, diag):
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
5 self.diag = diag
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
6
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
7 def genBin(self, i):
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
8 print(i)
8f3924b6076e Added some code generator things
Windel Bouwman
parents:
diff changeset
9