Exemplo n.º 1
0
 def __init__(self, instrlist=None):
     self.__map = generation()
     icache = []
     # if the __map needs to be inited before executing instructions
     # one solution is to prepend the instrlist with a function dedicated
     # to this init phase...
     for instr in instrlist or []:
         # call the instruction with this mapper:
         if not instr.misc['delayed']: instr(self)
         else: icache.append(instr)
     for instr in icache:
         instr(self)
Exemplo n.º 2
0
 def __init__(self, instrlist=None, csi=None):
     self.__map = generation()
     self.__map.lastw = 0
     self.__Mem = MemoryMap()
     self.conds = []
     self.csi = csi
     icache = []
     # if the __map needs to be inited before executing instructions
     # one solution is to prepend the instrlist with a function dedicated
     # to this init phase...
     for instr in instrlist or []:
         # call the instruction with this mapper:
         instr(self)
     self.view = mapperView(self)
Exemplo n.º 3
0
 def __init__(self,instrlist=None,csi=None):
     self.__map = generation()
     self.__map.lastw = 0
     self.__Mem = MemoryMap()
     self.conds = []
     self.csi = csi
     icache = []
     # if the __map needs to be inited before executing instructions
     # one solution is to prepend the instrlist with a function dedicated
     # to this init phase...
     for instr in instrlist or []:
         # call the instruction with this mapper:
         if not instr.misc['delayed']: instr(self)
         else: icache.append(instr)
     for instr in icache:
         instr(self)