| 506 | return result |
| 507 | |
| 508 | def get_instruction_text(self, data: bytes, addr: int) -> Optional[Tuple[List[InstructionTextToken], int]]: |
| 509 | result = M6502.decode_instruction(data, addr) |
| 510 | if result is None: |
| 511 | return None |
| 512 | instr, operand, length, value = result |
| 513 | tokens:List[InstructionTextToken] = [] |
| 514 | tokens.append(InstructionTextToken(InstructionTextTokenType.TextToken, "%-7s " % instr.replace("@", ""))) |
| 515 | tokens += M6502.OperandTokens[operand](value) |
| 516 | return tokens, length |
| 517 | |
| 518 | def get_instruction_low_level_il(self, data: bytes, addr: int, il: LowLevelILFunction) -> Optional[int]: |
| 519 | result = M6502.decode_instruction(data, addr) |