AY to PSG

For anything related to sound (YM2612, PSG, Z80, PCM...)

Moderator: BigEvilCorporation

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Thu Apr 14, 2011 9:33 am

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

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Thu Apr 14, 2011 8:03 pm

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. :D

HardWareMan
Very interested
Posts: 745
Joined: Sat Dec 15, 2007 7:49 am
Location: Kazakhstan, Pavlodar

Post by HardWareMan » Fri Apr 15, 2011 3:21 am

Chilly Willy wrote:When you're used to the 68000, it's easy to forget the Z80 is little endian. :D
While MIPS can be switched between big and litle endians almost on fly. :3

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Fri Apr 15, 2011 3:52 am

HardWareMan wrote:
Chilly Willy wrote:When you're used to the 68000, it's easy to forget the Z80 is little endian. :D
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.

Post Reply