1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 12:02:14 +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

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