class ISA(ISACaller):
def __init__(self, dec, regs):
super().__init__(dec, regs)
- self.fixedarith = fixedarith(dec, regs)
- self.fixedload = fixedload(dec, regs)
- self.fixedstore = fixedstore(dec, regs)
+ self.fixedarith = fixedarith()
+ self.fixedload = fixedload()
+ self.fixedstore = fixedstore()
self.instrs = {
- **self.fixedarith.instrs,
- **self.fixedload.instrs,
- **self.fixedstore.instrs,
+ **self.fixedarith.fixedarith_instrs,
+ **self.fixedload.fixedload_instrs,
+ **self.fixedstore.fixedstore_instrs,
}
def call(self, name):
yield from self.prep_namespace()
- function, read_regs, uninit_regs, write_regs = self.instrs[name]
+ function, read_regs, uninit_regs, write_regs, form \
+ = self.instrs[name]
input_names = create_args(read_regs | uninit_regs)
print(input_names)