MCPcopy Create free account
hub / github.com/dobin/SuperMega / printInstr

Function printInstr

pe/asmdisasm.py:57–62  ·  view source on GitHub ↗
(instr, depth=0)

Source from the content-addressed store, hash-verified

55
56
57def printInstr(instr, depth=0):
58 _bytes = [f'{x:02x}' for x in instr.bytes[:8]]
59 if len(instr.bytes) < 8:
60 _bytes.extend([' ',] * (8 - len(instr.bytes)))
61 instrBytes = ' '.join([f'{x}' for x in _bytes])
62 logger.debug('\t' * 1 + f' [{instr.address:08x}]\t{instrBytes}' + '\t' * depth + f'{instr.mnemonic}\t{instr.op_str}')

Callers 2

asm_disasmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected