mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-02-15 21:41:47 +00:00
Fix getInstrIndexAsVram taking the upper 8 bits instead of 4 bits for the vram calculation
This commit is contained in:
parent
96301a3b4c
commit
b244da7a9b
@ -46,7 +46,7 @@ uint32_t RabbitizerInstruction_getInstrIndexAsVram(const RabbitizerInstruction *
|
||||
vram |= 0x80000000;
|
||||
} else {
|
||||
// Jumps are PC-region branches. The upper bits are filled with the address in the delay slot
|
||||
vram |= (self->vram + 4) & 0xFF000000;
|
||||
vram |= (self->vram + 4) & 0xF0000000;
|
||||
}
|
||||
return vram;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user