[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use MMX or SSE for Apple II



>    Do you have thought to emulate video?  Byte by Byte sequence can be 
> slow.  Put 7 bytes into register and process them in parallel using MMX or 
> SSE of x86.  It may speed up.  It helps when emulated MPU is in process in 
> serial and then in turn to process video in parallel.  What do you think?

x64 CPU's don't support MMX in 64-bit mode, only SSE+.  Thus, you'll lose 
portability if you write the MMX 32-bit part and then have to redo it using 
SSE+ for the 64-bit part.  Also, the 64-bit C/C++ compilers don't allow 
inlined assembly instructions and so the entire routine will have to be done 
in asembly and linked in seperately.  There are compiler instrinsics that 
can instead be used in its place.  Either way, MMX is dead.  If specialty 
instructions must be used, SSE+ is the way to go.


Thanks,
Shawn