mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2024-12-28 06:19:43 +00:00
25 lines
547 B
C
25 lines
547 B
C
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#include "instructions/RabbitizerInstr.h"
|
|
|
|
#include "stdio.h"
|
|
|
|
int main() {
|
|
uint32_t word = 0x0C0224A9;
|
|
RabbitizerInstr instr;
|
|
char buffer[0x1000]; // huge buffer for testing purposes
|
|
|
|
RabbitizerInstr_Init(&instr, word);
|
|
|
|
RabbitizerInstr_ProcessUniqueId_Normal(&instr);
|
|
|
|
RabbitizerInstr_DisassembleInstruction(&instr, buffer, NULL, 0);
|
|
|
|
printf("%08X: %s\n", word, buffer);
|
|
|
|
RabbitizerInstr_Destroy(&instr);
|
|
|
|
return 0;
|
|
}
|