mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
arm7dasm.c: tiny fix for undefined shift behavior (nw)
This commit is contained in:
parent
89071cd635
commit
807fecec81
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user