From 7ebb81112e67e7d46c93f1bdcf668b461c1b2ead Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Mon, 11 Feb 2013 22:09:28 +0000 Subject: [PATCH] armdasm.c: tiny fix for undefined shift behavior (nw) --- src/emu/cpu/arm/armdasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/cpu/arm/armdasm.c b/src/emu/cpu/arm/armdasm.c index fedb5cdc24e..8771c0ba74d 100644 --- a/src/emu/cpu/arm/armdasm.c +++ b/src/emu/cpu/arm/armdasm.c @@ -15,7 +15,7 @@ static char *WriteImmediateOperand( char *pBuf, UINT32 opcode ) imm = opcode&0xff; r = ((opcode>>8)&0xf)*2; - imm = (imm>>r)|(imm<<(32-r)); + imm = (imm>>r)|(r?(imm<<(32-r)):0); pBuf += sprintf( pBuf, ", #$%x", imm ); return pBuf; }