cpu/{arm|thumb}(chore): change how branch disassembly happens

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-11 23:03:44 +05:30
parent 0062ad424b
commit 15c4802838
10 changed files with 38 additions and 33 deletions

View File

@@ -26,7 +26,7 @@ struct BranchAndExchange {
struct Branch {
bool link;
uint32_t offset;
int32_t offset;
};
struct Multiply {

View File

@@ -282,7 +282,7 @@ struct Instruction {
void exec(Cpu& cpu);
#ifdef DISASSEMBLER
std::string disassemble(uint32_t pc = 0);
std::string disassemble();
#endif
InstructionData data;