ghidra/Ghidra/Processors/V850
Cameron Taylor c8322ba9e7
V850: Fixed multiply by immediate
Multiply by immediate (mul imm9, reg2, reg3) used a signed token for the lower 5 bits of the immediate value imm9.
This resulted in any immediate value in which the 5th bit was set to be calculated incorrectly.

imm9 = 0x18 ( 0b000011000 )
OLD:    f8 0f 40 52        mul    -0x8, r1, r10
NEW:   f8 0f 40 52        mul    0x18, r1, r10

imm9 = -0xF0 ( 0b100010000 )
OLD:    f0 0f 60 52        mul    -0x10, r1, r10
NEW:   f0 0f 60 52        mul    -0xf0, r1, r10
2021-04-22 20:50:11 -04:00
..
data V850: Fixed multiply by immediate 2021-04-22 20:50:11 -04:00
build.gradle Updated certification headers 2021-03-17 18:22:50 -04:00
certification.manifest Updated certification headers 2021-03-17 18:22:50 -04:00
Module.manifest Improved code with the help of @GhidorahRex 2020-02-17 16:30:15 +01:00