mirror of
https://github.com/jefftranter/udis.git
synced 2024-06-12 04:29:27 +00:00
z80: added z80bit flag to generated ddcb and fdcb 4 byte instructions
This commit is contained in:
parent
d3c950d365
commit
c924ce0fc2
2
udis.py
2
udis.py
|
@ -199,7 +199,7 @@ while True:
|
||||||
if flags & 4 == z80bit:
|
if flags & 4 == z80bit:
|
||||||
opcode = (opcode << 16) + op[2]
|
opcode = (opcode << 16) + op[2]
|
||||||
# reread opcode table for real format string
|
# reread opcode table for real format string
|
||||||
length, mnemonic, mode = opcodeTable[opcode]
|
length, mnemonic, mode, flags = opcodeTable[opcode]
|
||||||
format = addressModeTable[mode]
|
format = addressModeTable[mode]
|
||||||
operand = format.format(op[1])
|
operand = format.format(op[1])
|
||||||
else:
|
else:
|
||||||
|
|
2
z80.py
2
z80.py
|
@ -1005,7 +1005,7 @@ def extra_opcodes(addr_table, op_table):
|
||||||
|
|
||||||
for fourth_byte, (instruction, addrmode) in enumerate(zip(mnemonics, addrmodes)):
|
for fourth_byte, (instruction, addrmode) in enumerate(zip(mnemonics, addrmodes)):
|
||||||
opcode = (first_byte << 24) + (0xcb << 16) + fourth_byte
|
opcode = (first_byte << 24) + (0xcb << 16) + fourth_byte
|
||||||
op_table[opcode] = [ 4, instruction, addrmode % x_or_y ]
|
op_table[opcode] = [ 4, instruction, addrmode % x_or_y, z80bit ]
|
||||||
extra_opcodes(addressModeTable, opcodeTable)
|
extra_opcodes(addressModeTable, opcodeTable)
|
||||||
del extra_opcodes
|
del extra_opcodes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user