1
0
Fork 0

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:
Sjoerd van der Berg 2009-11-10 19:52:58 +00:00
parent db0aef34cf
commit 072ddbe083
6 changed files with 60 additions and 28 deletions

View file

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