From d895ea1bea4d8528077041f7a68c7a17ca3391ee Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Fri, 19 Mar 2010 06:51:25 +0000 Subject: [PATCH] Remove generated files --- src/blit.h | 518 ------------- src/blitfunc.c | 1519 ------------------------------------- src/blitfunc.h | 44 -- src/blittable.c | 77 -- src/linetoscr.c | 1767 ------------------------------------------- src/tools/cpudefs.c | 184 ----- 6 files changed, 4109 deletions(-) delete mode 100644 src/blit.h delete mode 100644 src/blitfunc.c delete mode 100644 src/blitfunc.h delete mode 100644 src/blittable.c delete mode 100644 src/linetoscr.c delete mode 100644 src/tools/cpudefs.c diff --git a/src/blit.h b/src/blit.h deleted file mode 100644 index eb62073..0000000 --- a/src/blit.h +++ /dev/null @@ -1,518 +0,0 @@ -STATIC_INLINE uae_u32 blit_func(uae_u32 srca, uae_u32 srcb, uae_u32 srcc, uae_u8 mt) -{ -switch(mt){ -case 0x0: - return 0; -case 0x1: - return ~(srca | srcb | srcc); -case 0x2: - return (srcc & ~(srca | srcb)); -case 0x3: - return ~(srca | srcb); -case 0x4: - return (srcb & ~(srca | srcc)); -case 0x5: - return ~(srca | srcc); -case 0x6: - return (~srca & (srcb ^ srcc)); -case 0x7: - return ~(srca | (srcb & srcc)); -case 0x8: - return (~srca & srcb & srcc); -case 0x9: - return ~(srca | (srcb ^ srcc)); -case 0xa: - return (~srca & srcc); -case 0xb: - return ~(srca | (srcb & ~srcc)); -case 0xc: - return (~srca & srcb); -case 0xd: - return ~(srca | (~srcb & srcc)); -case 0xe: - return (~srca & (srcb | srcc)); -case 0xf: - return ~srca; -case 0x10: - return (srca & ~(srcb | srcc)); -case 0x11: - return ~(srcb | srcc); -case 0x12: - return (~srcb & (srca ^ srcc)); -case 0x13: - return ~(srcb | (srca & srcc)); -case 0x14: - return (~srcc & (srca ^ srcb)); -case 0x15: - return ~(srcc | (srca & srcb)); -case 0x16: - return (srca ^ ((srca & srcb) | (srcb ^ srcc))); -case 0x17: - return ~(srca ^ ((srca ^ srcb) & (srca ^ srcc))); -case 0x18: - return ((srca ^ srcb) & (srca ^ srcc)); -case 0x19: - return (srcb ^ (~srcc | (srca & srcb))); -case 0x1a: - return (srca ^ (srcc | (srca & srcb))); -case 0x1b: - return (srca ^ (srcc | ~(srca ^ srcb))); -case 0x1c: - return (srca ^ (srcb | (srca & srcc))); -case 0x1d: - return (srca ^ (srcb | ~(srca ^ srcc))); -case 0x1e: - return (srca ^ (srcb | srcc)); -case 0x1f: - return ~(srca & (srcb | srcc)); -case 0x20: - return (srca & ~srcb & srcc); -case 0x21: - return ~(srcb | (srca ^ srcc)); -case 0x22: - return (~srcb & srcc); -case 0x23: - return ~(srcb | (srca & ~srcc)); -case 0x24: - return ((srca ^ srcb) & (srcb ^ srcc)); -case 0x25: - return (srca ^ (~srcc | (srca & srcb))); -case 0x26: - return (srcb ^ (srcc | (srca & srcb))); -case 0x27: - return ~(srca ^ (srcc & (srca ^ srcb))); -case 0x28: - return (srcc & (srca ^ srcb)); -case 0x29: - return ~(srca ^ srcb ^ (srcc | (srca & srcb))); -case 0x2a: - return (srcc & ~(srca & srcb)); -case 0x2b: - return ~(srca ^ ((srca ^ srcb) & (srcb ^ srcc))); -case 0x2c: - return (srcb ^ (srca & (srcb | srcc))); -case 0x2d: - return (srca ^ (srcb | ~srcc)); -case 0x2e: - return (srca ^ (srcb | (srca ^ srcc))); -case 0x2f: - return ~(srca & (srcb | ~srcc)); -case 0x30: - return (srca & ~srcb); -case 0x31: - return ~(srcb | (~srca & srcc)); -case 0x32: - return (~srcb & (srca | srcc)); -case 0x33: - return ~srcb; -case 0x34: - return (srcb ^ (srca | (srcb & srcc))); -case 0x35: - return (srcb ^ (srca | ~(srcb ^ srcc))); -case 0x36: - return (srcb ^ (srca | srcc)); -case 0x37: - return ~(srcb & (srca | srcc)); -case 0x38: - return (srca ^ (srcb & (srca | srcc))); -case 0x39: - return (srcb ^ (srca | ~srcc)); -case 0x3a: - return (srcb ^ (srca | (srcb ^ srcc))); -case 0x3b: - return ~(srcb & (srca | ~srcc)); -case 0x3c: - return (srca ^ srcb); -case 0x3d: - return (srca ^ (srcb | ~(srca | srcc))); -case 0x3e: - return (srca ^ (srcb | (srca ^ (srca | srcc)))); -case 0x3f: - return ~(srca & srcb); -case 0x40: - return (srca & srcb & ~srcc); -case 0x41: - return ~(srcc | (srca ^ srcb)); -case 0x42: - return ((srca ^ srcc) & (srcb ^ srcc)); -case 0x43: - return (srca ^ (~srcb | (srca & srcc))); -case 0x44: - return (srcb & ~srcc); -case 0x45: - return ~(srcc | (srca & ~srcb)); -case 0x46: - return (srcc ^ (srcb | (srca & srcc))); -case 0x47: - return ~(srca ^ (srcb & (srca ^ srcc))); -case 0x48: - return (srcb & (srca ^ srcc)); -case 0x49: - return ~(srca ^ srcc ^ (srcb | (srca & srcc))); -case 0x4a: - return (srcc ^ (srca & (srcb | srcc))); -case 0x4b: - return (srca ^ (~srcb | srcc)); -case 0x4c: - return (srcb & ~(srca & srcc)); -case 0x4d: - return (srca ^ ((srca ^ srcb) | ~(srca ^ srcc))); -case 0x4e: - return (srca ^ (srcc | (srca ^ srcb))); -case 0x4f: - return ~(srca & (~srcb | srcc)); -case 0x50: - return (srca & ~srcc); -case 0x51: - return ~(srcc | (~srca & srcb)); -case 0x52: - return (srcc ^ (srca | (srcb & srcc))); -case 0x53: - return ~(srcb ^ (srca & (srcb ^ srcc))); -case 0x54: - return (~srcc & (srca | srcb)); -case 0x55: - return ~srcc; -case 0x56: - return (srcc ^ (srca | srcb)); -case 0x57: - return ~(srcc & (srca | srcb)); -case 0x58: - return (srca ^ (srcc & (srca | srcb))); -case 0x59: - return (srcc ^ (srca | ~srcb)); -case 0x5a: - return (srca ^ srcc); -case 0x5b: - return (srca ^ (srcc | ~(srca | srcb))); -case 0x5c: - return (srcc ^ (srca | (srcb ^ srcc))); -case 0x5d: - return ~(srcc & (srca | ~srcb)); -case 0x5e: - return (srca ^ (srcc | (srca ^ (srca | srcb)))); -case 0x5f: - return ~(srca & srcc); -case 0x60: - return (srca & (srcb ^ srcc)); -case 0x61: - return ~(srcb ^ srcc ^ (srca | (srcb & srcc))); -case 0x62: - return (srcc ^ (srcb & (srca | srcc))); -case 0x63: - return (srcb ^ (~srca | srcc)); -case 0x64: - return (srcb ^ (srcc & (srca | srcb))); -case 0x65: - return (srcc ^ (~srca | srcb)); -case 0x66: - return (srcb ^ srcc); -case 0x67: - return (srcb ^ (srcc | ~(srca | srcb))); -case 0x68: - return ((srca & srcb) ^ (srcc & (srca | srcb))); -case 0x69: - return ~(srca ^ srcb ^ srcc); -case 0x6a: - return (srcc ^ (srca & srcb)); -case 0x6b: - return ~(srca ^ srcb ^ (srcc & (srca | srcb))); -case 0x6c: - return (srcb ^ (srca & srcc)); -case 0x6d: - return ~(srca ^ srcc ^ (srcb & (srca | srcc))); -case 0x6e: - return ((~srca & srcb) | (srcb ^ srcc)); -case 0x6f: - return (~srca | (srcb ^ srcc)); -case 0x70: - return (srca & ~(srcb & srcc)); -case 0x71: - return ~(srca ^ ((srca ^ srcb) | (srca ^ srcc))); -case 0x72: - return (srcb ^ (srcc | (srca ^ srcb))); -case 0x73: - return ~(srcb & (~srca | srcc)); -case 0x74: - return (srcc ^ (srcb | (srca ^ srcc))); -case 0x75: - return ~(srcc & (~srca | srcb)); -case 0x76: - return (srcb ^ (srcc | (srca ^ (srca & srcb)))); -case 0x77: - return ~(srcb & srcc); -case 0x78: - return (srca ^ (srcb & srcc)); -case 0x79: - return ~(srcb ^ srcc ^ (srca & (srcb | srcc))); -case 0x7a: - return ((srca & ~srcb) | (srca ^ srcc)); -case 0x7b: - return (~srcb | (srca ^ srcc)); -case 0x7c: - return ((srca ^ srcb) | (srca & ~srcc)); -case 0x7d: - return (~srcc | (srca ^ srcb)); -case 0x7e: - return ((srca ^ srcb) | (srca ^ srcc)); -case 0x7f: - return ~(srca & srcb & srcc); -case 0x80: - return (srca & srcb & srcc); -case 0x81: - return ~((srca ^ srcb) | (srca ^ srcc)); -case 0x82: - return (srcc & ~(srca ^ srcb)); -case 0x83: - return (srca ^ (~srcb | (srca & ~srcc))); -case 0x84: - return (srcb & ~(srca ^ srcc)); -case 0x85: - return (srca ^ (~srcc | (srca & ~srcb))); -case 0x86: - return (srcb ^ srcc ^ (srca & (srcb | srcc))); -case 0x87: - return ~(srca ^ (srcb & srcc)); -case 0x88: - return (srcb & srcc); -case 0x89: - return (srcb ^ (~srcc & (~srca | srcb))); -case 0x8a: - return (srcc & (~srca | srcb)); -case 0x8b: - return (srca ^ (~srcb | (srca ^ srcc))); -case 0x8c: - return (srcb & (~srca | srcc)); -case 0x8d: - return (srca ^ (~srcc | (srca ^ srcb))); -case 0x8e: - return (srca ^ ((srca ^ srcb) | (srca ^ srcc))); -case 0x8f: - return (~srca | (srcb & srcc)); -case 0x90: - return (srca & ~(srcb ^ srcc)); -case 0x91: - return (srcb ^ (~srcc | (~srca & srcb))); -case 0x92: - return (srca ^ srcc ^ (srcb & (srca | srcc))); -case 0x93: - return ~(srcb ^ (srca & srcc)); -case 0x94: - return (srca ^ srcb ^ (srcc & (srca | srcb))); -case 0x95: - return ~(srcc ^ (srca & srcb)); -case 0x96: - return (srca ^ srcb ^ srcc); -case 0x97: - return (srca ^ srcb ^ (srcc | ~(srca | srcb))); -case 0x98: - return (srcb ^ (~srcc & (srca | srcb))); -case 0x99: - return ~(srcb ^ srcc); -case 0x9a: - return (srcc ^ (srca & ~srcb)); -case 0x9b: - return ~(srcb ^ (srcc & (srca | srcb))); -case 0x9c: - return (srcb ^ (srca & ~srcc)); -case 0x9d: - return ~(srcc ^ (srcb & (srca | srcc))); -case 0x9e: - return (srcb ^ srcc ^ (srca | (srcb & srcc))); -case 0x9f: - return ~(srca & (srcb ^ srcc)); -case 0xa0: - return (srca & srcc); -case 0xa1: - return (srca ^ (~srcc & (srca | ~srcb))); -case 0xa2: - return (srcc & (srca | ~srcb)); -case 0xa3: - return (srcb ^ (~srca | (srcb ^ srcc))); -case 0xa4: - return (srca ^ (~srcc & (srca | srcb))); -case 0xa5: - return ~(srca ^ srcc); -case 0xa6: - return (srcc ^ (~srca & srcb)); -case 0xa7: - return ~(srca ^ (srcc & (srca | srcb))); -case 0xa8: - return (srcc & (srca | srcb)); -case 0xa9: - return ~(srcc ^ (srca | srcb)); -case 0xaa: - return srcc; -case 0xab: - return (srcc | ~(srca | srcb)); -case 0xac: - return (srcb ^ (srca & (srcb ^ srcc))); -case 0xad: - return ~(srcc ^ (srca | (srcb & srcc))); -case 0xae: - return (srcc | (~srca & srcb)); -case 0xaf: - return (~srca | srcc); -case 0xb0: - return (srca & (~srcb | srcc)); -case 0xb1: - return ~(srca ^ (srcc | (srca ^ srcb))); -case 0xb2: - return (srca ^ ((srca ^ srcc) & (srcb ^ srcc))); -case 0xb3: - return (~srcb | (srca & srcc)); -case 0xb4: - return (srca ^ (srcb & ~srcc)); -case 0xb5: - return ~(srcc ^ (srca & (srcb | srcc))); -case 0xb6: - return (srca ^ srcc ^ (srcb | (srca & srcc))); -case 0xb7: - return ~(srcb & (srca ^ srcc)); -case 0xb8: - return (srca ^ (srcb & (srca ^ srcc))); -case 0xb9: - return ~(srcc ^ (srcb | (srca & srcc))); -case 0xba: - return (srcc | (srca & ~srcb)); -case 0xbb: - return (~srcb | srcc); -case 0xbc: - return ((srca ^ srcb) | (srca & srcc)); -case 0xbd: - return ((srca ^ srcb) | ~(srca ^ srcc)); -case 0xbe: - return (srcc | (srca ^ srcb)); -case 0xbf: - return (srcc | ~(srca & srcb)); -case 0xc0: - return (srca & srcb); -case 0xc1: - return (srca ^ (~srcb & (srca | ~srcc))); -case 0xc2: - return (srca ^ (~srcb & (srca | srcc))); -case 0xc3: - return ~(srca ^ srcb); -case 0xc4: - return (srcb & (srca | ~srcc)); -case 0xc5: - return ~(srcb ^ (srca | (srcb ^ srcc))); -case 0xc6: - return (srcb ^ (~srca & srcc)); -case 0xc7: - return ~(srca ^ (srcb & (srca | srcc))); -case 0xc8: - return (srcb & (srca | srcc)); -case 0xc9: - return ~(srcb ^ (srca | srcc)); -case 0xca: - return (srcc ^ (srca & (srcb ^ srcc))); -case 0xcb: - return ~(srcb ^ (srca | (srcb & srcc))); -case 0xcc: - return srcb; -case 0xcd: - return (srcb | ~(srca | srcc)); -case 0xce: - return (srcb | (~srca & srcc)); -case 0xcf: - return (~srca | srcb); -case 0xd0: - return (srca & (srcb | ~srcc)); -case 0xd1: - return ~(srca ^ (srcb | (srca ^ srcc))); -case 0xd2: - return (srca ^ (~srcb & srcc)); -case 0xd3: - return ~(srcb ^ (srca & (srcb | srcc))); -case 0xd4: - return (srca ^ ((srca ^ srcb) & (srcb ^ srcc))); -case 0xd5: - return (~srcc | (srca & srcb)); -case 0xd6: - return (srca ^ srcb ^ (srcc | (srca & srcb))); -case 0xd7: - return ~(srcc & (srca ^ srcb)); -case 0xd8: - return (srca ^ (srcc & (srca ^ srcb))); -case 0xd9: - return ~(srcb ^ (srcc | (srca & srcb))); -case 0xda: - return ((srca & srcb) | (srca ^ srcc)); -case 0xdb: - return ~((srca ^ srcb) & (srcb ^ srcc)); -case 0xdc: - return (srcb | (srca & ~srcc)); -case 0xdd: - return (srcb | ~srcc); -case 0xde: - return (srcb | (srca ^ srcc)); -case 0xdf: - return (srcb | ~(srca & srcc)); -case 0xe0: - return (srca & (srcb | srcc)); -case 0xe1: - return ~(srca ^ (srcb | srcc)); -case 0xe2: - return (srcc ^ (srcb & (srca ^ srcc))); -case 0xe3: - return ~(srca ^ (srcb | (srca & srcc))); -case 0xe4: - return (srcb ^ (srcc & (srca ^ srcb))); -case 0xe5: - return ~(srca ^ (srcc | (srca & srcb))); -case 0xe6: - return ((srca & srcb) | (srcb ^ srcc)); -case 0xe7: - return ~((srca ^ srcb) & (srca ^ srcc)); -case 0xe8: - return (srca ^ ((srca ^ srcb) & (srca ^ srcc))); -case 0xe9: - return (srca ^ srcb ^ (~srcc | (srca & srcb))); -case 0xea: - return (srcc | (srca & srcb)); -case 0xeb: - return (srcc | ~(srca ^ srcb)); -case 0xec: - return (srcb | (srca & srcc)); -case 0xed: - return (srcb | ~(srca ^ srcc)); -case 0xee: - return (srcb | srcc); -case 0xef: - return (~srca | srcb | srcc); -case 0xf0: - return srca; -case 0xf1: - return (srca | ~(srcb | srcc)); -case 0xf2: - return (srca | (~srcb & srcc)); -case 0xf3: - return (srca | ~srcb); -case 0xf4: - return (srca | (srcb & ~srcc)); -case 0xf5: - return (srca | ~srcc); -case 0xf6: - return (srca | (srcb ^ srcc)); -case 0xf7: - return (srca | ~(srcb & srcc)); -case 0xf8: - return (srca | (srcb & srcc)); -case 0xf9: - return (srca | ~(srcb ^ srcc)); -case 0xfa: - return (srca | srcc); -case 0xfb: - return (srca | ~srcb | srcc); -case 0xfc: - return (srca | srcb); -case 0xfd: - return (srca | srcb | ~srcc); -case 0xfe: - return (srca | srcb | srcc); -case 0xff: - return 0xFFFFFFFF; -} -return 0; -} diff --git a/src/blitfunc.c b/src/blitfunc.c deleted file mode 100644 index dc0bf62..0000000 --- a/src/blitfunc.c +++ /dev/null @@ -1,1519 +0,0 @@ -#include "sysconfig.h" -#include "sysdeps.h" -#include "options.h" -#include "memory.h" -#include "custom.h" -#include "custom_private.h" -#include "blitter.h" -#include "blitfunc.h" - -void blitdofast_0 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (dstp) chipmem_wput (dstp, dstd); - dstd = (0) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (ptd) ptd += b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_0 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (dstp) chipmem_wput (dstp, dstd); - dstd = (0) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (ptd) ptd -= b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((~srca & srcc)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((~srca & srcc)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_2a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc & ~(srca & srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_2a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc & ~(srca & srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_30 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca & ~srcb)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_30 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca & ~srcb)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_3a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcb ^ (srca | (srcb ^ srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_3a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcb ^ (srca | (srcb ^ srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_3c (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca ^ srcb)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_3c (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca ^ srcb)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_4a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & (srcb | srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_4a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & (srcb | srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_6a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_6a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_8a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc & (~srca | srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_8a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc & (~srca | srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_8c (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcb & (~srca | srcc))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_8c (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcb & (~srca | srcc))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_9a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & ~srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_9a (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & ~srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_a8 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc & (srca | srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_a8 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc & (srca | srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_aa (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (dstp) chipmem_wput (dstp, dstd); - dstd = (srcc) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_aa (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (dstp) chipmem_wput (dstp, dstd); - dstd = (srcc) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_b1 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = (~(srca ^ (srcc | (srca ^ srcb)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_b1 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = (~(srca ^ (srcc | (srca ^ srcb)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_ca (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & (srcb ^ srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_ca (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srca & (srcb ^ srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_cc (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (dstp) chipmem_wput (dstp, dstd); - dstd = (srcb) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (ptb) ptb += b->bltbmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_cc (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (dstp) chipmem_wput (dstp, dstd); - dstd = (srcb) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (ptb) ptb -= b->bltbmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_d8 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca ^ (srcc & (srca ^ srcb)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_d8 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca ^ (srcc & (srca ^ srcb)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_e2 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srcb & (srca ^ srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_e2 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc ^ (srcb & (srca ^ srcc)))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_ea (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc | (srca & srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_ea (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srcc | (srca & srcb))) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_f0 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = (srca) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptd) ptd += b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_f0 (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = (srca) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptd) ptd -= b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_fa (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptc) { srcc = chipmem_wget (ptc); ptc += 2; } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca | srcc)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptc) ptc += b->bltcmod; - if (ptd) ptd += b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_fa (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptc) { srcc = chipmem_wget (ptc); ptc -= 2; } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca | srcc)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptc) ptc -= b->bltcmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_fc (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -int i,j; -uae_u32 totald = 0; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb += 2; - srcb = (((uae_u32)prevb << 16) | bltbdat) >> b->blitbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta += 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)preva << 16) | bltadat) >> b->blitashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca | srcb)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd += 2; } - } - if (pta) pta += b->bltamod; - if (ptb) ptb += b->bltbmod; - if (ptd) ptd += b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} -void blitdofast_desc_fc (uaecptr pta, uaecptr ptb, uaecptr ptc, uaecptr ptd, struct bltinfo *b) -{ -uae_u32 totald = 0; -int i,j; -uae_u32 preva = 0; -uae_u32 prevb = 0, srcb = b->bltbhold; -uae_u32 srcc = b->bltcdat; -uae_u32 dstd=0; -uaecptr dstp = 0; -for (j = b->vblitsize; j--; ) { - for (i = 0; i < b->hblitsize; i++) { - uae_u32 bltadat, srca; - if (ptb) { - uae_u32 bltbdat = blt_info.bltbdat = chipmem_wget (ptb); ptb -= 2; - srcb = ((bltbdat << 16) | prevb) >> b->blitdownbshift; - prevb = bltbdat; - } - if (pta) { bltadat = blt_info.bltadat = chipmem_wget (pta); pta -= 2; } else { bltadat = blt_info.bltadat; } - bltadat &= blit_masktable[i]; - srca = (((uae_u32)bltadat << 16) | preva) >> b->blitdownashift; - preva = bltadat; - if (dstp) chipmem_wput (dstp, dstd); - dstd = ((srca | srcb)) & 0xFFFF; - totald |= dstd; - if (ptd) { dstp = ptd; ptd -= 2; } - } - if (pta) pta -= b->bltamod; - if (ptb) ptb -= b->bltbmod; - if (ptd) ptd -= b->bltdmod; -} -b->bltbhold = srcb; -b->bltcdat = srcc; - if (dstp) chipmem_wput (dstp, dstd); -if (totald != 0) b->blitzero = 0; -} diff --git a/src/blitfunc.h b/src/blitfunc.h deleted file mode 100644 index 31df8e3..0000000 --- a/src/blitfunc.h +++ /dev/null @@ -1,44 +0,0 @@ -extern blitter_func blitdofast_0; -extern blitter_func blitdofast_desc_0; -extern blitter_func blitdofast_a; -extern blitter_func blitdofast_desc_a; -extern blitter_func blitdofast_2a; -extern blitter_func blitdofast_desc_2a; -extern blitter_func blitdofast_30; -extern blitter_func blitdofast_desc_30; -extern blitter_func blitdofast_3a; -extern blitter_func blitdofast_desc_3a; -extern blitter_func blitdofast_3c; -extern blitter_func blitdofast_desc_3c; -extern blitter_func blitdofast_4a; -extern blitter_func blitdofast_desc_4a; -extern blitter_func blitdofast_6a; -extern blitter_func blitdofast_desc_6a; -extern blitter_func blitdofast_8a; -extern blitter_func blitdofast_desc_8a; -extern blitter_func blitdofast_8c; -extern blitter_func blitdofast_desc_8c; -extern blitter_func blitdofast_9a; -extern blitter_func blitdofast_desc_9a; -extern blitter_func blitdofast_a8; -extern blitter_func blitdofast_desc_a8; -extern blitter_func blitdofast_aa; -extern blitter_func blitdofast_desc_aa; -extern blitter_func blitdofast_b1; -extern blitter_func blitdofast_desc_b1; -extern blitter_func blitdofast_ca; -extern blitter_func blitdofast_desc_ca; -extern blitter_func blitdofast_cc; -extern blitter_func blitdofast_desc_cc; -extern blitter_func blitdofast_d8; -extern blitter_func blitdofast_desc_d8; -extern blitter_func blitdofast_e2; -extern blitter_func blitdofast_desc_e2; -extern blitter_func blitdofast_ea; -extern blitter_func blitdofast_desc_ea; -extern blitter_func blitdofast_f0; -extern blitter_func blitdofast_desc_f0; -extern blitter_func blitdofast_fa; -extern blitter_func blitdofast_desc_fa; -extern blitter_func blitdofast_fc; -extern blitter_func blitdofast_desc_fc; diff --git a/src/blittable.c b/src/blittable.c deleted file mode 100644 index 5ffb09d..0000000 --- a/src/blittable.c +++ /dev/null @@ -1,77 +0,0 @@ -#include "sysconfig.h" -#include "sysdeps.h" -#include "options.h" -#include "custom.h" -#include "memory.h" -#include "blitter.h" -#include "blitfunc.h" - -blitter_func * const blitfunc_dofast[256] = { -blitdofast_0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_2a, 0, 0, 0, 0, 0, -blitdofast_30, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_3a, 0, blitdofast_3c, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_4a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_6a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_8a, 0, blitdofast_8c, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_9a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -blitdofast_a8, 0, blitdofast_aa, 0, 0, 0, 0, 0, -0, blitdofast_b1, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_ca, 0, blitdofast_cc, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -blitdofast_d8, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_e2, 0, 0, 0, 0, 0, -0, 0, blitdofast_ea, 0, 0, 0, 0, 0, -blitdofast_f0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_fa, 0, blitdofast_fc, 0, 0, 0 -}; - -blitter_func * const blitfunc_dofast_desc[256] = { -blitdofast_desc_0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_2a, 0, 0, 0, 0, 0, -blitdofast_desc_30, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_3a, 0, blitdofast_desc_3c, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_4a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_6a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_8a, 0, blitdofast_desc_8c, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_9a, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -blitdofast_desc_a8, 0, blitdofast_desc_aa, 0, 0, 0, 0, 0, -0, blitdofast_desc_b1, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_ca, 0, blitdofast_desc_cc, 0, 0, 0, -0, 0, 0, 0, 0, 0, 0, 0, -blitdofast_desc_d8, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_e2, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_ea, 0, 0, 0, 0, 0, -blitdofast_desc_f0, 0, 0, 0, 0, 0, 0, 0, -0, 0, blitdofast_desc_fa, 0, blitdofast_desc_fc, 0, 0, 0 -}; diff --git a/src/linetoscr.c b/src/linetoscr.c deleted file mode 100644 index ae44980..0000000 --- a/src/linetoscr.c +++ /dev/null @@ -1,1767 +0,0 @@ -/* - * E-UAE - The portable Amiga emulator. - * - * This file was generated by genlinetoscr. Don't edit. - */ - -static int NOINLINE linetoscr_8 (int spix, int dpix, int stoppos) -{ - uae_u8 *buf = (uae_u8 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} - -static int NOINLINE linetoscr_8_stretch1 (int spix, int dpix, int stoppos) -{ - uae_u8 *buf = (uae_u8 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } - - return spix; -} - -static int NOINLINE linetoscr_8_shrink1 (int spix, int dpix, int stoppos) -{ - uae_u8 *buf = (uae_u8 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} - -#ifdef AGA -static int NOINLINE linetoscr_8_aga (int spix, int dpix, int stoppos) -{ - uae_u8 *buf = (uae_u8 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} -#endif - -#ifdef AGA -static int NOINLINE linetoscr_8_stretch1_aga (int spix, int dpix, int stoppos) -{ - uae_u8 *buf = (uae_u8 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - *((uae_u16 *)&buf[dpix]) = (uae_u16) out_val; - dpix += 2; - } - } - - return spix; -} -#endif - -#ifdef AGA -static int NOINLINE linetoscr_8_shrink1_aga (int spix, int dpix, int stoppos) -{ - uae_u8 *buf = (uae_u8 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} -#endif - -static int NOINLINE linetoscr_16 (int spix, int dpix, int stoppos) -{ - uae_u16 *buf = (uae_u16 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = dpix_val; - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - buf[dpix++] = dpix_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - buf[dpix++] = dpix_val; - } - } else if (bplehb) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - buf[dpix++] = dpix_val; - } - } else { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - buf[dpix++] = dpix_val; - } - } - - return spix; -} - -static int NOINLINE linetoscr_16_stretch1 (int spix, int dpix, int stoppos) -{ - uae_u16 *buf = (uae_u16 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } - - return spix; -} - -static int NOINLINE linetoscr_16_shrink1 (int spix, int dpix, int stoppos) -{ - uae_u16 *buf = (uae_u16 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - dpix_val = xcolors[ham_linebuf[spix]]; - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix += 2; - out_val = dpix_val; - dpix_val = xcolors[ham_linebuf[spix]]; - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - dpix_val = xcolors[ham_linebuf[spix]]; - spix += 2; - buf[dpix++] = dpix_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix += 2; - buf[dpix++] = dpix_val; - } - } else if (bplehb) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix += 2; - buf[dpix++] = dpix_val; - } - } else { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - buf[dpix++] = dpix_val; - } - } - - return spix; -} - -#ifdef AGA -static int NOINLINE linetoscr_16_aga (int spix, int dpix, int stoppos) -{ - uae_u16 *buf = (uae_u16 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - buf[dpix++] = dpix_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - buf[dpix++] = dpix_val; - } - } else if (bplehb) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - buf[dpix++] = dpix_val; - } - } else { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - buf[dpix++] = dpix_val; - } - } - - return spix; -} -#endif - -#ifdef AGA -static int NOINLINE linetoscr_16_stretch1_aga (int spix, int dpix, int stoppos) -{ - uae_u16 *buf = (uae_u16 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - } - - return spix; -} -#endif - -#ifdef AGA -static int NOINLINE linetoscr_16_shrink1_aga (int spix, int dpix, int stoppos) -{ - uae_u16 *buf = (uae_u16 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix += 2; - buf[dpix++] = dpix_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix += 2; - buf[dpix++] = dpix_val; - } - } else if (bplehb) { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - buf[dpix++] = dpix_val; - } - } else { - int rem; - if (((long)&buf[dpix]) & 2) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - buf[dpix++] = dpix_val; - } - if (dpix >= stoppos) - return spix; - rem = (((long)&buf[stoppos]) & 2); - if (rem) - stoppos--; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = (out_val & 0xFFFF) | (dpix_val << 16); - *((uae_u32 *)&buf[dpix]) = out_val; - dpix += 2; - } - if (rem) { - uae_u32 spix_val; - uae_u32 dpix_val; - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - buf[dpix++] = dpix_val; - } - } - - return spix; -} -#endif - -static int NOINLINE linetoscr_32 (int spix, int dpix, int stoppos) -{ - uae_u32 *buf = (uae_u32 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} - -static int NOINLINE linetoscr_32_stretch1 (int spix, int dpix, int stoppos) -{ - uae_u32 *buf = (uae_u32 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } - - return spix; -} - -static int NOINLINE linetoscr_32_shrink1 (int spix, int dpix, int stoppos) -{ - uae_u32 *buf = (uae_u32 *) xlinebuffer; - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - dpix_val = xcolors[ham_linebuf[spix]]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2 : dblpf_ind1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[lookup[spix_val]]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spix_val <= 31) - dpix_val = colors_for_drawing.acolors[spix_val]; - else - dpix_val = xcolors[(colors_for_drawing.color_regs_ecs[spix_val - 32] >> 1) & 0x777]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} - -#ifdef AGA -static int NOINLINE linetoscr_32_aga (int spix, int dpix, int stoppos) -{ - uae_u32 *buf = (uae_u32 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} -#endif - -#ifdef AGA -static int NOINLINE linetoscr_32_stretch1_aga (int spix, int dpix, int stoppos) -{ - uae_u32 *buf = (uae_u32 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix++; - out_val = dpix_val; - buf[dpix++] = out_val; - buf[dpix++] = out_val; - } - } - - return spix; -} -#endif - -#ifdef AGA -static int NOINLINE linetoscr_32_shrink1_aga (int spix, int dpix, int stoppos) -{ - uae_u32 *buf = (uae_u32 *) xlinebuffer; - uae_u8 xor_val = (uae_u8)(dp_for_drawing->bplcon4 >> 8); - - if (dp_for_drawing->ham_seen) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = CONVERT_RGB (ham_linebuf[spix]); - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bpldualpf) { - int *lookup = bpldualpfpri ? dblpf_ind2_aga : dblpf_ind1_aga; - int *lookup_no = bpldualpfpri ? dblpf_2nd2 : dblpf_2nd1; - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix]; - if (spriteagadpfpixels[spix]) { - dpix_val = colors_for_drawing.acolors[spriteagadpfpixels[spix]]; - spriteagadpfpixels[spix] = 0; - } else { - unsigned int val = lookup[spix_val]; - if (lookup_no[spix_val] == 2) - val += dblpfofs[bpldualpf2of]; - val ^= xor_val; - dpix_val = colors_for_drawing.acolors[val]; - } - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else if (bplehb) { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - if (spix_val >= 32 && spix_val < 64) { - unsigned int c = (colors_for_drawing.color_regs_aga[spix_val - 32] >> 1) & 0x7F7F7F; - dpix_val = CONVERT_RGB (c); - } else - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } else { - while (dpix < stoppos) { - uae_u32 spix_val; - uae_u32 dpix_val; - uae_u32 out_val; - - spix_val = pixdata.apixels[spix] ^ xor_val; - dpix_val = colors_for_drawing.acolors[spix_val]; - spix += 2; - out_val = dpix_val; - buf[dpix++] = out_val; - } - } - - return spix; -} -#endif - diff --git a/src/tools/cpudefs.c b/src/tools/cpudefs.c deleted file mode 100644 index b1870cf..0000000 --- a/src/tools/cpudefs.c +++ /dev/null @@ -1,184 +0,0 @@ -#include "sysconfig.h" -#include "uae_types.h" -#include "readcpu.h" -struct instr_def defs68k[] = { -{ 60, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }, 16, "ORSR.B #1"}, -{ 124, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "ORSR.W #1"}, -{ 192, 8, {17,17,11,11,11,12,12,12,0,0,0,0,0,0,0,0}, 63936, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "CHK2.z #1,s[!Dreg,Areg,Aipi,Apdi,Immd]"}, -{ 0, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "OR.z #z,d[!Areg]"}, -{ 572, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }, 16, "ANDSR.B #1"}, -{ 636, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "ANDSR.W #1"}, -{ 512, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "AND.z #z,d[!Areg]"}, -{ 1024, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "SUB.z #z,d[!Areg]"}, -{ 1536, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ADD.z #z,d[!Areg]"}, -{ 1728, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "CALLM s[!Dreg,Areg,Aipi,Apdi,Immd]"}, -{ 1728, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "RTM s[Dreg,Areg]"}, -{ 2048, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 17, "BTST #1,s[!Areg]"}, -{ 2112, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 19, "BCHG #1,s[!Areg,Immd]"}, -{ 2176, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 19, "BCLR #1,s[!Areg,Immd]"}, -{ 2240, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 19, "BSET #1,s[!Areg,Immd]"}, -{ 2620, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 }, { 0, 0 } }, 16, "EORSR.B #1"}, -{ 2684, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "EORSR.W #1"}, -{ 2560, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "EOR.z #z,d[!Areg]"}, -{ 3072, 8, {17,17,11,11,11,12,12,12,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 17, "CMP.z #z,s[!Areg,Immd]"}, -{ 2752, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "CAS.B #1,s[!Dreg,Areg,Immd,PC8r,PC16]"}, -{ 3264, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "CAS.W #1,s[!Dreg,Areg,Immd,PC8r,PC16]"}, -{ 3324, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "CAS2.W #2"}, -{ 3584, 8, {17,17,11,11,11,12,12,12,0,0,0,0,0,0,0,0}, 65280, 2, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "MOVES.z #1,s[!Dreg,Areg,Immd,PC8r,PC16]"}, -{ 3776, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "CAS.L #1,s[!Dreg,Areg,Immd,PC8r,PC16]"}, -{ 3836, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "CAS2.L #2"}, -{ 256, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MVPMR.W d[Areg-Ad16],Dr"}, -{ 320, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MVPMR.L d[Areg-Ad16],Dr"}, -{ 384, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MVPRM.W Dr,d[Areg-Ad16]"}, -{ 448, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MVPRM.L Dr,d[Areg-Ad16]"}, -{ 256, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 17, "BTST Dr,s[!Areg]"}, -{ 320, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 19, "BCHG Dr,s[!Areg,Immd]"}, -{ 384, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 19, "BCLR Dr,s[!Areg,Immd]"}, -{ 448, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 0 }, { 1, 1 }, { 1, 1 } }, 19, "BSET Dr,s[!Areg,Immd]"}, -{ 4096, 12, {14,14,14,13,13,13,11,11,11,12,12,12,0,0,0,0}, 61440, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 18, "MOVE.B s,d[!Areg]"}, -{ 8192, 12, {14,14,14,13,13,13,11,11,11,12,12,12,0,0,0,0}, 61440, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVEA.L s,d[Areg]"}, -{ 8192, 12, {14,14,14,13,13,13,11,11,11,12,12,12,0,0,0,0}, 61440, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 18, "MOVE.L s,d[!Areg]"}, -{ 12288, 12, {14,14,14,13,13,13,11,11,11,12,12,12,0,0,0,0}, 61440, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVEA.W s,d[Areg]"}, -{ 12288, 12, {14,14,14,13,13,13,11,11,11,12,12,12,0,0,0,0}, 61440, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 18, "MOVE.W s,d[!Areg]"}, -{ 16384, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 0, 0 }, { 1, 4 }, { 0, 0 }, { 1, 4 }, { 1, 0 } }, 48, "NEGX.z d[!Areg]"}, -{ 16576, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 1, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "MVSR2.W d[!Areg]"}, -{ 16896, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 2 }, { 1, 3 }, { 1, 2 }, { 1, 2 } }, 32, "CLR.z d[!Areg]"}, -{ 17088, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 1, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "MVSR2.B d[!Areg]"}, -{ 17408, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 48, "NEG.z d[!Areg]"}, -{ 17600, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 16, "MV2SR.B s[!Areg]"}, -{ 17920, 8, {17,17,13,13,13,14,14,14,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 48, "NOT.z d[!Areg]"}, -{ 18112, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "MV2SR.W s[!Areg]"}, -{ 18440, 3, {15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 2, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 49, "LINK.L Ar,#2"}, -{ 18432, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 0, 0 }, { 1, 5 }, { 0, 0 }, { 1, 5 }, { 1, 0 } }, 48, "NBCD.B d[!Areg]"}, -{ 18504, 3, {9,9,9,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "BKPT #k"}, -{ 18496, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 48, "SWAP.W s[Dreg]"}, -{ 18496, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 0, "PEA.L s[!Dreg,Areg,Aipi,Apdi,Immd]"}, -{ 18560, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 48, "EXT.W d[Dreg]"}, -{ 18560, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "MVMLE.W #1,d[!Dreg,Areg,Aipi]"}, -{ 18624, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 48, "EXT.L d[Dreg]"}, -{ 18624, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "MVMLE.L #1,d[!Dreg,Areg,Aipi]"}, -{ 18880, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 48, "EXT.B d[Dreg]"}, -{ 18944, 8, {17,17,11,11,11,12,12,12,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 16, "TST.z s"}, -{ 19136, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 48, "TAS.B d[!Areg]"}, -{ 19196, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 0, "ILLEGAL"}, -{ 19456, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "MULL.L #1,s[!Areg]"}, -{ 19520, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "DIVL.L #1,s[!Areg]"}, -{ 19584, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 1, "MVMEL.W #1,s[!Dreg,Areg,Apdi,Immd]"}, -{ 19648, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 1, "MVMEL.L #1,s[!Dreg,Areg,Apdi,Immd]"}, -{ 20032, 4, {8,8,8,8,0,0,0,0,0,0,0,0,0,0,0,0}, 65520, 0, 0, { { 0, 1 }, { 0, 1 }, { 0, 1 }, { 0, 1 }, { 0, 1 } }, 16, "TRAP #J"}, -{ 20048, 3, {15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 49, "LINK.W Ar,#1"}, -{ 20056, 3, {15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 48, "UNLK.L Ar"}, -{ 20064, 3, {15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 0, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 16, "MVR2USP.L Ar"}, -{ 20072, 3, {15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 0, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 32, "MVUSP2R.L Ar"}, -{ 20080, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 0, "RESET"}, -{ 20081, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 0, "NOP"}, -{ 20082, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 2, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 16, "STOP #1"}, -{ 20083, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 2, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 0, "RTE"}, -{ 20084, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "RTD #1"}, -{ 20085, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 0, "RTS"}, -{ 20086, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 0, 1 }, { 0, 1 }, { 0, 1 }, { 0, 1 }, { 0, 1 } }, 0, "TRAPV"}, -{ 20087, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 0, "RTR"}, -{ 20090, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 1, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "MOVEC2 #1"}, -{ 20091, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 1, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "MOVE2C #1"}, -{ 20096, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 } }, 128, "JSR.L s[!Dreg,Areg,Aipi,Apdi,Immd]"}, -{ 16640, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "CHK.L s[!Areg],Dr"}, -{ 16768, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "CHK.W s[!Areg],Dr"}, -{ 20160, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 0, 0, { { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 } }, 128, "JMP.L s[!Dreg,Areg,Aipi,Apdi,Immd]"}, -{ 16832, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "LEA.L s[!Dreg,Areg,Aipi,Apdi,Immd],Ar"}, -{ 20544, 9, {7,7,7,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "ADDA.W #j,d[Areg]"}, -{ 20608, 9, {7,7,7,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "ADDA.L #j,d[Areg]"}, -{ 20480, 11, {7,7,7,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ADD.z #j,d[!Areg]"}, -{ 20800, 9, {7,7,7,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "SUBA.W #j,d[Areg]"}, -{ 20864, 9, {7,7,7,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "SUBA.L #j,d[Areg]"}, -{ 20736, 11, {7,7,7,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "SUB.z #j,d[!Areg]"}, -{ 20680, 7, {2,2,2,2,15,15,15,0,0,0,0,0,0,0,0,0}, 61688, 0, 0, { { 1, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 } }, 49, "DBcc.W Dr,#1"}, -{ 20672, 10, {2,2,2,2,13,13,13,14,14,14,0,0,0,0,0,0}, 61632, 0, 0, { { 1, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 } }, 32, "Scc.B d[!Areg]"}, -{ 20730, 4, {2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0}, 61695, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "TRAPcc #1"}, -{ 20731, 4, {2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0}, 61695, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "TRAPcc #2"}, -{ 20732, 4, {2,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0}, 61695, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 0, "TRAPcc"}, -{ 24832, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 } }, 64, "BSR.W #1"}, -{ 24832, 8, {6,6,6,6,6,6,6,6,0,0,0,0,0,0,0,0}, 65280, 0, 0, { { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 } }, 64, "BSR.B #i"}, -{ 25087, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 0, 0, { { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 }, { 4, 6 } }, 64, "BSR.L #2"}, -{ 24576, 4, {3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0}, 61695, 0, 0, { { 1, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 } }, 64, "Bcc.W #1"}, -{ 24576, 12, {3,3,3,3,6,6,6,6,6,6,6,6,0,0,0,0}, 61440, 0, 0, { { 1, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 } }, 64, "Bcc.B #i"}, -{ 24831, 4, {3,3,3,3,0,0,0,0,0,0,0,0,0,0,0,0}, 61695, 0, 0, { { 1, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 }, { 2, 1 } }, 64, "Bcc.L #2"}, -{ 28672, 11, {15,15,15,5,5,5,5,5,5,5,5,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 18, "MOVE.L #i,Dr"}, -{ 32768, 11, {15,15,15,17,17,11,11,11,12,12,12,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "OR.z s[!Areg],Dr"}, -{ 32960, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "DIVU.W s[!Areg],Dr"}, -{ 33024, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 0, 0 }, { 1, 4 }, { 0, 0 }, { 1, 4 }, { 1, 0 } }, 19, "SBCD.B d[Dreg],Dr"}, -{ 33024, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 0, 0 }, { 1, 4 }, { 0, 0 }, { 1, 4 }, { 1, 0 } }, 19, "SBCD.B d[Areg-Apdi],Arp"}, -{ 33024, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "OR.z Dr,d[!Areg,Dreg]"}, -{ 33088, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 18, "PACK d[Dreg],Dr"}, -{ 33088, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 18, "PACK d[Areg-Apdi],Arp"}, -{ 33152, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 18, "UNPK d[Dreg],Dr"}, -{ 33152, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 18, "UNPK d[Areg-Apdi],Arp"}, -{ 33216, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "DIVS.W s[!Areg],Dr"}, -{ 36864, 11, {15,15,15,17,17,11,11,11,12,12,12,0,0,0,0,0}, 61696, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "SUB.z s,Dr"}, -{ 37056, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "SUBA.W s,Ar"}, -{ 37120, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 0, 0 }, { 1, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 } }, 19, "SUBX.z d[Dreg],Dr"}, -{ 37120, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 0, 0 }, { 1, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 } }, 19, "SUBX.z d[Areg-Apdi],Arp"}, -{ 37120, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "SUB.z Dr,d[!Areg,Dreg]"}, -{ 37312, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "SUBA.L s,Ar"}, -{ 45056, 11, {15,15,15,17,17,11,11,11,12,12,12,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 17, "CMP.z s,Dr"}, -{ 45248, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 17, "CMPA.W s,Ar"}, -{ 45504, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 17, "CMPA.L s,Ar"}, -{ 45312, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 17, "CMPM.z d[Areg-Aipi],ArP"}, -{ 45312, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "EOR.z Dr,d[!Areg]"}, -{ 49152, 11, {15,15,15,17,17,11,11,11,12,12,12,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "AND.z s[!Areg],Dr"}, -{ 49344, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "MULU.W s[!Areg],Dr"}, -{ 49408, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 0, 0 }, { 1, 4 }, { 0, 0 }, { 1, 4 }, { 1, 0 } }, 19, "ABCD.B d[Dreg],Dr"}, -{ 49408, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 0, 0 }, { 1, 4 }, { 0, 0 }, { 1, 4 }, { 1, 0 } }, 19, "ABCD.B d[Areg-Apdi],Arp"}, -{ 49408, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "AND.z Dr,d[!Areg,Dreg]"}, -{ 49472, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 51, "EXG.L Dr,d[Dreg]"}, -{ 49472, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 51, "EXG.L Ar,d[Areg]"}, -{ 49536, 9, {15,15,15,13,13,13,14,14,14,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 51, "EXG.L Dr,d[Areg]"}, -{ 49600, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 2 } }, 19, "MULS.W s[!Areg],Dr"}, -{ 53248, 11, {15,15,15,17,17,11,11,11,12,12,12,0,0,0,0,0}, 61696, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ADD.z s,Dr"}, -{ 53440, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "ADDA.W s,Ar"}, -{ 53504, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 0, 0 }, { 1, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ADDX.z d[Dreg],Dr"}, -{ 53504, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 0, 0 }, { 1, 0 }, { 0, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ADDX.z d[Areg-Apdi],Arp"}, -{ 53504, 11, {15,15,15,17,17,13,13,13,14,14,14,0,0,0,0,0}, 61696, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ADD.z Dr,d[!Areg,Dreg]"}, -{ 53696, 9, {15,15,15,11,11,11,12,12,12,0,0,0,0,0,0,0}, 61888, 0, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 19, "ADDA.L s,Ar"}, -{ 57344, 9, {7,7,7,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ASf.z #j,DR"}, -{ 57352, 9, {7,7,7,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "LSf.z #j,DR"}, -{ 57360, 9, {7,7,7,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "ROXf.z #j,DR"}, -{ 57368, 9, {7,7,7,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "ROf.z #j,DR"}, -{ 57376, 9, {15,15,15,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ASf.z Dr,DR"}, -{ 57384, 9, {15,15,15,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "LSf.z Dr,DR"}, -{ 57392, 9, {15,15,15,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "ROXf.z Dr,DR"}, -{ 57400, 9, {15,15,15,4,17,17,16,16,16,0,0,0,0,0,0,0}, 61496, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "ROf.z Dr,DR"}, -{ 57536, 7, {4,13,13,13,14,14,14,0,0,0,0,0,0,0,0,0}, 65216, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 0 } }, 19, "ASfW.W d[!Dreg,Areg]"}, -{ 58048, 7, {4,13,13,13,14,14,14,0,0,0,0,0,0,0,0,0}, 65216, 0, 0, { { 1, 0 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "LSfW.W d[!Dreg,Areg]"}, -{ 58560, 7, {4,13,13,13,14,14,14,0,0,0,0,0,0,0,0,0}, 65216, 0, 0, { { 0, 0 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "ROXfW.W d[!Dreg,Areg]"}, -{ 59072, 7, {4,13,13,13,14,14,14,0,0,0,0,0,0,0,0,0}, 65216, 0, 0, { { 1, 1 }, { 1, 0 }, { 1, 0 }, { 1, 2 }, { 1, 0 } }, 19, "ROfW.W d[!Dreg,Areg]"}, -{ 59584, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "BFTST #1,s[!Areg,Apdi,Aipi,Immd]"}, -{ 59840, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "BFEXTU #1,s[!Areg,Apdi,Aipi,Immd]"}, -{ 60096, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "BFCHG #1,s[!Areg,Apdi,Aipi,Immd,PC8r,PC16]"}, -{ 60352, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "BFEXTS #1,s[!Areg,Apdi,Aipi,Immd]"}, -{ 60608, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "BFCLR #1,s[!Areg,Apdi,Aipi,Immd,PC8r,PC16]"}, -{ 60864, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "BFFFO #1,s[!Areg,Apdi,Aipi,Immd]"}, -{ 61120, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "BFSET #1,s[!Areg,Apdi,Aipi,Immd,PC8r,PC16]"}, -{ 61376, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 2, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 19, "BFINS #1,s[!Areg,Apdi,Aipi,Immd,PC8r,PC16]"}, -{ 61952, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "FPP #1,s"}, -{ 62016, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "FDBcc #1,s[Areg-Dreg]"}, -{ 62016, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "FScc #1,s[!Areg,Immd,PC8r,PC16]"}, -{ 62074, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "FTRAPcc #1"}, -{ 62075, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "FTRAPcc #2"}, -{ 62076, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65535, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 0, "FTRAPcc"}, -{ 62080, 6, {10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "FBcc #K,#1"}, -{ 62144, 6, {10,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "FBcc #K,#2"}, -{ 62208, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 32, "FSAVE s[!Dreg,Areg,Aipi,Immd,PC8r,PC16]"}, -{ 62272, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 3, 2, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 16, "FRESTORE s[!Dreg,Areg,Apdi,Immd]"}, -{ 62720, 8, {5,5,5,5,5,12,12,12,0,0,0,0,0,0,0,0}, 65280, 4, 0, { { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 }, { 3, 5 } }, 17, "MMUOP #i,s"}, -{ 62472, 5, {18,18,15,15,15,0,0,0,0,0,0,0,0,0,0,0}, 65336, 4, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "CINVL #p,Ar"}, -{ 62480, 5, {18,18,15,15,15,0,0,0,0,0,0,0,0,0,0,0}, 65336, 4, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "CINVP #p,Ar"}, -{ 62488, 5, {18,18,15,15,15,0,0,0,0,0,0,0,0,0,0,0}, 65336, 4, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 0, "CINVA #p"}, -{ 62504, 5, {18,18,15,15,15,0,0,0,0,0,0,0,0,0,0,0}, 65336, 4, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "CPUSHL #p,Ar"}, -{ 62512, 5, {18,18,15,15,15,0,0,0,0,0,0,0,0,0,0,0}, 65336, 4, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 2, "CPUSHP #p,Ar"}, -{ 62520, 5, {18,18,15,15,15,0,0,0,0,0,0,0,0,0,0,0}, 65336, 4, 2, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 0, "CPUSHA #p"}, -{ 63008, 3, {15,15,15,0,0,0,0,0,0,0,0,0,0,0,0,0}, 65528, 4, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVE16 ArP,AxP"}, -{ 62976, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 4, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVE16 s[Dreg-Aipi],L"}, -{ 62976, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 4, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVE16 L,d[Areg-Aipi]"}, -{ 62976, 6, {11,11,11,12,12,12,0,0,0,0,0,0,0,0,0,0}, 65472, 4, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVE16 s[Aind],L"}, -{ 62976, 6, {13,13,13,14,14,14,0,0,0,0,0,0,0,0,0,0}, 65472, 4, 0, { { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 }, { 1, 1 } }, 18, "MOVE16 L,d[Aipi-Aind]"}}; -int n_defs68k = 179;