[Coco] Byte Order Question

David Gacke dgacke at ektarion.com
Tue Jul 27 22:35:18 EDT 2004


Hi All,

I've got a byte order question and I'm sure someone on here can give me
the correct answer.

I'm trying to figure out the byte order of 16 and 32 bit register writes
from a 6809 and 6309 

I'll use text characters as an example.

For instance, if I have a 32 bit value of say 0x41424344  ('ABCD') and I
were to write that to video display memory, what would I see?

Would it be:

ABCD

CDBA

DCBA


Also, what about 16 bit writes of say 0x4142..

Is it 

AB or BA?


I need someone to give me a sanity check while I'm coding something.  :)

Thanks a bunch!


Dave







More information about the Coco mailing list