def __init__(self):
self.instr = OrderedDict()
self.forms = {}
+ for pth in os.listdir(os.path.join(get_isa_dir())):
+ print (get_isa_dir(), pth)
+ assert pth.endswith(".mdwn"), "only %s in isa dir" % pth
+ self.read_file(pth)
def read_file(self, fname):
fname = os.path.join(get_isa_dir(), fname)
if __name__ == '__main__':
isa = ISA()
- for pth in os.listdir(os.path.join(get_isa_dir())):
- print (get_isa_dir(), pth)
- assert pth.endswith(".mdwn"), "only %s in isa dir" % pth
- isa.read_file(pth)
-
isa.pprint_ops()