Page 2 of 2
Posted: Thu Apr 14, 2011 9:33 am
by KanedaFr
ah ah!
yes I did!
I was aware it was lo then hi,
I read them the right way...but I inverted them while saving in memory!
stupid mistake from my poor knowledge in 8bit coding
Posted: Thu Apr 14, 2011 8:03 pm
by Chilly Willy
KanedaFr wrote:ah ah!
yes I did!
I was aware it was lo then hi,
I read them the right way...but I inverted them while saving in memory!
stupid mistake from my poor knowledge in 8bit coding
When you're used to the 68000, it's easy to forget the Z80 is little endian.

Posted: Fri Apr 15, 2011 3:21 am
by HardWareMan
Chilly Willy wrote:When you're used to the 68000, it's easy to forget the Z80 is little endian.

While MIPS can be switched between big and litle endians almost on fly. :3
Posted: Fri Apr 15, 2011 3:52 am
by Chilly Willy
HardWareMan wrote:Chilly Willy wrote:When you're used to the 68000, it's easy to forget the Z80 is little endian.

While MIPS can be switched between big and litle endians almost on fly. :3
Virtually every RISC processor is that way. The PowerPC can also switch endianness, and so can the SuperH. On the SuperH, the endianness is set for an address space; it's meant to make it easier to use PC intended devices. The PowerPC is more like the MIPS, having the endianness as part of the machine state so that you can set the processor to either endian state as you return from an exception.