1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

AltairZ80: M68K: Changes for SIMH.

Build: Compiled with VS 2022, Clang, gcc.
Test: Boot and run CP/M-68K from: https://schorn.ch/cpm/zip/cpm68k.zip
This commit is contained in:
Howard M. Harte
2022-10-08 00:25:04 -07:00
committed by Mark Pizzolato
parent 129ed5e1a9
commit 7fec24dbde
7 changed files with 32 additions and 19 deletions

View File

@@ -4,6 +4,7 @@
#ifdef LSB_FIRST
#define LITTLEENDIAN
#else
#undef BIGENDIAN
#define BIGENDIAN
#endif
@@ -23,9 +24,6 @@
*----------------------------------------------------------------------------*/
typedef sint8 flag;
typedef sint8 int8;
typedef sint16 int16;
typedef sint32 int32;
typedef sint64 int64;
/*----------------------------------------------------------------------------

View File

@@ -451,9 +451,9 @@ static inline void mul64To128( bits64 a, bits64 b, bits64 *z0Ptr, bits64 *z1Ptr
bits32 aHigh, aLow, bHigh, bLow;
bits64 z0, zMiddleA, zMiddleB, z1;
aLow = a;
aLow = (bits32)a;
aHigh = a>>32;
bLow = b;
bLow = (bits32)b;
bHigh = b>>32;
z1 = ( (bits64) aLow ) * bLow;
zMiddleA = ( (bits64) aLow ) * bHigh;
@@ -661,7 +661,7 @@ static int8 countLeadingZeros64( bits64 a )
else {
a >>= 32;
}
shiftCount += countLeadingZeros32( a );
shiftCount += countLeadingZeros32( (bits32)a );
return shiftCount;
}