take care, what i said is 'BIT' order

yes, it is when i was writing a tcp/ip stack that made me think of this question.SpyderTL wrote:Bit order would only matter with a serial connection, like a USB device or a Network adapter.
can i explain my question from another angle?and it's really up to the CPU and motherboard hardware to make sure that the address data bits are connected and delivered properly.
Code: Select all
<==============<=============== address growth
0x7c01 0x7c00
_________________________________
0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0
----------------------------------------------------------
I don't think so. Endianness applies to multi-byte fields, like WORDs, DWORDs and QWORDs. I don't think you have big endian and little endian bits.miaowei wrote:from the view of x86 cpu, the word's value(i.e *(unsigned short*)0x7c00 ) is 0x0102.
from the view of MIPS cpu, the word's value is 0x0201.
But, is there another kind of cpu in the world that treats this word as 0x8040, or 0x4080 ?
That wouldn't make sense.miaowei wrote:yes, it is when i was writing a tcp/ip stack that made me think of this question.SpyderTL wrote:Bit order would only matter with a serial connection, like a USB device or a Network adapter.
can i explain my question from another angle?and it's really up to the CPU and motherboard hardware to make sure that the address data bits are connected and delivered properly.
suppose there two byte(a word) in the RAM like:
from the view of x86 cpu, the word's value(i.e *(unsigned short*)0x7c00 ) is 0x0102.Code: Select all
<==============<=============== address growth 0x7c01 0x7c00 _________________________________ 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 ----------------------------------------------------------
from the view of MIPS cpu, the word's value is 0x0201.
But, is there another kind of cpu in the world that treats this word as 0x8040, or 0x4080 ?