TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
VOID | DisassembleInstruction (IN UINT8 **OpCodePtr, IN BOOLEAN Thumb, IN BOOLEAN Extended, IN OUT UINT32 *ItBlock, OUT CHAR8 *Buf, OUT UINTN Size) |
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ArmDisassemblerLib.h.
VOID DisassembleInstruction | ( | IN UINT8 ** | OpCodePtr, |
IN BOOLEAN | Thumb, | ||
IN BOOLEAN | Extended, | ||
IN OUT UINT32 * | ItBlock, | ||
OUT CHAR8 * | Buf, | ||
OUT UINTN | Size | ||
) |
Place a disassembly of **OpCodePtr into buffer, and update OpCodePtr to point to next instruction.
We cheat and only decode instructions that access memory. If the instruction is not found we dump the instruction in hex.
OpCodePtrPtr | Pointer to pointer of ARM Thumb instruction to disassemble. |
Thumb | TRUE for Thumb(2), FALSE for ARM instruction stream |
Extended | TRUE dump hex for instruction too. |
ItBlock | Size of IT Block |
Buf | Buffer to sprintf disassembly into. |
Size | Size of Buf in bytes. |
Place a disassembly of **OpCodePtr into buffer, and update OpCodePtr to point to next instruction.
OpCodePtrPtr | Pointer to pointer of instruction to disassemble. |
Thumb | TRUE for Thumb(2), FALSE for ARM instruction stream |
Extended | TRUE dump hex for instruction too. |
ItBlock | Size of IT Block |
Buf | Buffer to sprintf disassembly into. |
Size | Size of Buf in bytes. |
Definition at line 28 of file Aarch64Disassembler.c.