Implement 386 instruction table, improve 8086/186/286 instruction table
[multi_emu.git] / instr_65c02.py
1 #!/usr/bin/env python3
2
3 import py65.devices.mpu65c02
4 import py65.disassembler
5
6 mem = [0, 0x12, 0x34]
7 mpu = py65.devices.mpu65c02.MPU(mem, 0)
8 disassembler = py65.disassembler.Disassembler(mpu)
9
10 print('opcodes')
11 for i in range(0x100):
12   if i == 0x64: # cope with py65 disassembler bug
13     instr = 'stz $12'
14   else:
15     mem[0] = i
16     _, instr = disassembler.instruction_at(0)
17   print(instr)
18 print()