コード例 #1
0
ファイル: tools.py プロジェクト: blackchip-org/mach8-py
 def __init__(self, mem, origin=0, meta=None):
     self.mem = mem
     self.pc = memory.ProgramCounter(mem, origin) 
     self._opcodes = x6502.get_instruction_set()
     if meta is None: 
         meta = MetaSource() 
     self.meta = meta
コード例 #2
0
ファイル: test_x6502.py プロジェクト: blackchip-org/mach8-py
 def test_instruction_set(self):
     # NOP instruction
     self.assertTrue(0xea in x6502.get_instruction_set())