Endian???

hgmjr

Joined Jan 28, 2005
9,027
What answers have you got?

There are many sources of information on the internet that can help you answer this question. Google is a terrific tool for the purpose.

hgmjr
 

Ratch

Joined Mar 20, 2007
1,070
mnunez021,

Big endian used in Motorola micros
Location Contents (Byte)
20: 00
21: 00
22: 08 hex
23: 01 hex

Little endian used by Intel micros.
Location Contents (Byte)
20: 01 hex
21: 08 hex
22: 00
23: 00

Endian describes the way a word is stored in memory. As a programmer, you usually don't have to worry too much about it unless you address a partial word with a byte instruction. Intel reverses the bytes, but not the bits within the bytes.

Ratch
 

hgmjr

Joined Jan 28, 2005
9,027
Big Endian
Location Contents (Byte)
20: 00
21: 00
22: 20
23: 49

Little Endian
Location Contents (Byte)
20: 20
21: 49
22: 00
23: 00

Ive looked on google and havent had much luck
Do you see what you overlooked in your first attempt?

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,027
Sorry. The answer is incorrect. Keep in mind that the value as stated in the problem is expressed as a decimal value. You will need to do a bit of converting first before you tackle dealing with the endianness.

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,027
Yes. You may recall from your studies that memory contains values expressed in binary. Hexadecimal notation is commonly used when expressing 8-bit values so I would suggest you consider taking that conversion as your first step. Did your instructor mention that you would be dealing with hexadecimal values when this problem was assigned?

hgmjr
 

hgmjr

Joined Jan 28, 2005
9,027
Then go ahead and convert it and then use that number in place of the number you used in reply #3. I think that will get you where you need to be.

hgmjr
 
Top