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

This commit is contained in:
Wilbert Pol 2013-02-11 21:53:36 +00:00
parent 89071cd635
commit 807fecec81

View File

@ -112,7 +112,7 @@ static char *WriteImmediateOperand( char *pBuf, UINT32 opcode )
imm = opcode&0xff; imm = opcode&0xff;
r = ((opcode>>8)&0xf)*2; r = ((opcode>>8)&0xf)*2;
imm = (imm>>r)|(imm<<(32-r)); imm = (imm>>r)|(r?(imm<<(32-r)):0);
pBuf += sprintf( pBuf, ", #$%x", imm ); pBuf += sprintf( pBuf, ", #$%x", imm );
return pBuf; return pBuf;
} }