Fix getInstrIndexAsVram taking the upper 8 bits instead of 4 bits for the vram calculation

This commit is contained in:
angie 2023-04-27 16:06:40 -04:00
parent 96301a3b4c
commit b244da7a9b

View File

@ -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;
}