armdasm.c: tiny fix for undefined shift behavior (nw)

This commit is contained in:
Wilbert Pol 2013-02-11 22:09:28 +00:00
parent dd20508cd7
commit 7ebb81112e

View File

@ -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;
}