But if you use an index register instead of HL you could use an offset.  Now the 8080 
didn't have index registers, so this may have been an issue on these.

It usually turns out that this kind of thing seems like a win for little endian, but 
in fact the big endian can do these operations just as fast.  It just requires a 
little different logic.

-----Original Message-----
From: Alan Cox [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 4:16 AM
To: [EMAIL PROTECTED]
Subject: Re: big and little endian


On Mer, 2003-08-06 at 18:49, Fargusson.Alan wrote:
> I suspect that little endian was an accident.  It is easy to design little
> endian for a serial adder as John pointed out.  You can't tell the
> difference on a word addressed machine since you need to be able to see the
> same data with different views to tell how it is stored.  Oddly enough a

On Z80 little endian is a performance win at least for non deep magic
programmers because you often needed to do 8bit maths ops. If HL pointed
to your data then in little endian you could fiddle with the low byte
without adjusting HL, and also do 8bit converts from 16bit data without
extra maths.

Reply via email to