Add correct 16bit BSWAP behavior in the interpreting cores
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3498
This commit is contained in:
parent
db0aef34cf
commit
072ddbe083
6 changed files with 60 additions and 28 deletions
|
@ -956,5 +956,8 @@
|
|||
save(op1,lf_resd); \
|
||||
lflags.type=t_DSHRd;
|
||||
|
||||
#define BSWAP(op1) \
|
||||
#define BSWAPW(op1) \
|
||||
op1 = 0;
|
||||
|
||||
#define BSWAPD(op1) \
|
||||
op1 = (op1>>24)|((op1>>8)&0xFF00)|((op1<<8)&0xFF0000)|((op1<<24)&0xFF000000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue