diff options
| author | Galen Williamson <galen@vector35.com> | 2025-04-14 18:45:55 -0400 |
|---|---|---|
| committer | Galen Williamson <galen@vector35.com> | 2025-04-14 18:47:23 -0400 |
| commit | 9b7b429106f16b5704cf27baf9f3d69ff4a0857a (patch) | |
| tree | 438d3a60bef08a1e8c7faa25e4abd249d58286db /arch/powerpc/arch_ppc.cpp | |
| parent | 941b8b63c02184b4708d85391c5348b8d8913628 (diff) | |
[powerpc] Fix incorrect disassembly of LIS, ADDIS, ANDI, ANDIS; add assembly of subis
Diffstat (limited to 'arch/powerpc/arch_ppc.cpp')
| -rw-r--r-- | arch/powerpc/arch_ppc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/arch_ppc.cpp b/arch/powerpc/arch_ppc.cpp index f732b561..ed95488f 100644 --- a/arch/powerpc/arch_ppc.cpp +++ b/arch/powerpc/arch_ppc.cpp @@ -598,11 +598,11 @@ class PowerpcArchitecture: public Architecture snprintf(buf, sizeof(buf), "0x%" PRIx64, op->imm); result.emplace_back(CodeRelativeAddressToken, buf, (uint32_t) op->imm, 4); break; - case PPC_INS_ADDIS: - case PPC_INS_LIS: case PPC_INS_ORIS: case PPC_INS_XORIS: case PPC_INS_ORI: + case PPC_INS_ANDI: + case PPC_INS_ANDIS: snprintf(buf, sizeof(buf), "0x%x", (uint16_t)op->imm); result.emplace_back(IntegerToken, buf, (uint16_t) op->imm, 4); break; |
