Fix shift by register in interpreter

Only the LSB byte is actually used.
This commit is contained in:
David Guillen Fandos 2021-09-17 20:17:51 +02:00
parent c2c2564e4a
commit 8fabfaf2a8
1 changed files with 1 additions and 1 deletions

2
cpu.c
View File

@ -345,7 +345,7 @@ void print_register_usage(void)
#define get_shift_register(dest) \
u32 shift = reg[(opcode >> 8) & 0x0F]; \
u32 shift = reg[(opcode >> 8) & 0x0F] & 0xFF; \
using_register(arm, ((opcode >> 8) & 0x0F), op_shift); \
dest = reg[rm]; \
if(rm == 15) \