Fix J decode wrong immediate
TODO recheck maybe
This commit is contained in:
parent
5b020b0444
commit
c466d7d175
@ -68,7 +68,7 @@ static void cpu_decode(raw_instruction_t raw_instruction, instruction_t* output)
|
||||
// Then following 10 bits (30-21) are immediate bits 10-1
|
||||
output->immediate |= (raw_instruction.data & 0x7FE00000) >> 20;
|
||||
// Following bit (20) is immediate bit 11
|
||||
output->immediate |= (raw_instruction.data & 0x200000) >> 10;
|
||||
output->immediate |= (raw_instruction.data & 0x200000) >> 9;
|
||||
// Last bits (19-12) are immediate bits 19-12
|
||||
output->immediate |= (raw_instruction.data & 0xFF000);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user