:Not 100% true, even in native mode the Z380 ALU still 32 bits and by the
:way some coding tricks like:
:
:imagine you have to countdown the time of a game or what ever you want
:
: LD DE,(TimeCounter)
: LD HL,-2
: ADD HL,DE
:this wont give the good result on Z380
They say it's fully Z80-compatible so this can't be true because else a lot
of programs won't work (it's a often-used trick)...
:If you code it the right way:
:
: AND A ;clear CARRY
: LD DE,(TimeCounter)
: LD HL,2
: SBC HL,DE
:
:Then you'll get the right answer.
The other one ***is*** right.
:Think the same way for the next example, imagine you have a counter that
:count from 0 to 65535 (FFFFh) if it is FFFFh and you increment it then it
:goes to 0000h and set Z and C flags of Z80, but in Z380 it will simply
:gives: 10000h with out Z and C!
Still think it ain't correct. They claim it's Z80-compatible in native mode
and they can't have overlooked that.
:BTW I've never used the ADD with -2 tricks in my onw code, but I know that
:some did. So compatibility is not garanted if we do not take care of this
:kind of problem.
The need... for speed...
~Grauw
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****