summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/arm7/arm7dasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/arm7/arm7dasm.cpp')
-rw-r--r--src/devices/cpu/arm7/arm7dasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/arm7/arm7dasm.cpp b/src/devices/cpu/arm7/arm7dasm.cpp
index 3a5ec37a7f7..7de800bb9c8 100644
--- a/src/devices/cpu/arm7/arm7dasm.cpp
+++ b/src/devices/cpu/arm7/arm7dasm.cpp
@@ -96,7 +96,7 @@ uint32_t arm7_disassembler::ExtractImmediateOperand( uint32_t opcode )
/* rrrrbbbbbbbb */
uint32_t imm = opcode&0xff;
int r = ((opcode>>8)&0xf)*2;
- return (imm>>r)|(r?(imm<<(32-r)):0);
+ return rotr_32(imm, r);
}
void arm7_disassembler::WriteShiftCount( std::ostream &stream, uint32_t opcode )