kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

disasm.h (590B)


      1 #ifndef KIT_ARCH_ARM32_DISASM_H
      2 #define KIT_ARCH_ARM32_DISASM_H
      3 
      4 /* ARM32 (Thumb-2) disassembler -- ArchDisasm + ArchDecodeOps implementation.
      5  *
      6  * Table-driven decode over arm32_insn_table (src/arch/arm32/isa.c). Width is
      7  * picked per the Thumb-2 rule: the first half-word's bits[15:11] in
      8  * {0b11101, 0b11110, 0b11111} mark a 32-bit instruction (read a second
      9  * half-word); everything else is 16-bit. Unknown words fall back to
     10  * `.inst`/`.hword` placeholders. */
     11 
     12 #include "arch/arch.h"
     13 
     14 ArchDisasm* arm32_disasm_new(Compiler*);
     15 extern const ArchDecodeOps arm32_decode_ops;
     16 
     17 #endif