From 807fecec81d65754c21973e9c1cc07c2de67ed6d Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Mon, 11 Feb 2013 21:53:36 +0000 Subject: [PATCH] arm7dasm.c: tiny fix for undefined shift behavior (nw) --- src/emu/cpu/arm7/arm7dasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/cpu/arm7/arm7dasm.c b/src/emu/cpu/arm7/arm7dasm.c index 5f42f2f0507..c7cfa2af33e 100644 --- a/src/emu/cpu/arm7/arm7dasm.c +++ b/src/emu/cpu/arm7/arm7dasm.c @@ -112,7 +112,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; }