mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-05-20 02:14:55 +00:00
Initial project setup with rabbitizer submodule
This commit is contained in:
commit
e48fdabdae
9 changed files with 641 additions and 0 deletions
14
src/main.cpp
Normal file
14
src/main.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "rabbitizer.hpp"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
uint32_t word = 0x8D4A7E18; // lw
|
||||
uint32_t vram = 0x80000000;
|
||||
int extraLJust = 5;
|
||||
rabbitizer::InstructionCpu instr(word, vram);
|
||||
|
||||
printf("%08X: %s\n", word, instr.disassemble(extraLJust).c_str());
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue