mirror of
https://github.com/holub/mame
synced 2025-05-22 13:48:55 +03:00
armdasm.c: tiny fix for undefined shift behavior (nw)
This commit is contained in:
parent
dd20508cd7
commit
7ebb81112e
@ -15,7 +15,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user