[Coco] Byte Order Question

jdaggett at gate.net jdaggett at gate.net
Wed Jul 28 08:11:43 EDT 2004


David

You would see

ABCD

and

AB

Bit order is generally left to right starting with the Most Significant
Bit on the Left ie:

b32, b32, b30, ... ,b3, b2, b1, b0

james


On 27 Jul 2004 at 21:35, David Gacke wrote:

From: "David Gacke" <dgacke at ektarion.com>
To: "'CoCoList for Color Computer Enthusiasts'"
<coco at maltedmedia.com>
Date sent: Tue, 27 Jul 2004 21:35:18 -0500
Subject: [Coco] Byte Order Question
Send reply to: CoCoList for Color Computer Enthusiasts
<coco at maltedmedia.com>
<mailto:coco-
request at maltedmedia.com?subject=unsubscribe>
<mailto:coco-
request at maltedmedia.com?subject=subscribe>


> 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

>

>

>

>

>

> --

> Coco mailing list

> Coco at maltedmedia.com

> http://five.pairlist.net/mailman/listinfo/coco






More information about the Coco mailing list