Is the NES endian:
1a. Motorola (right-endian)
Highest power of 2 bit is right-most (last in memory), right to left.
1b. Intel (left-endian)
Highest power of 2 bit is left-most (first in memory), left to right.
Also:
In Motorola-Endian, are words (2bytes) as follows:
2a.
or:
2b.
Also:
In Intel-Endian, are words (2bytes) as follows:
3a.
or:
3b.
I am so confused.
Also Blitz Basic, Blitz Plus, Blitz 3D seems to do it totally wrong for Intel-Endian for peeking/poking Signed Short Integers.
(signed __int16)
1a. Motorola (right-endian)
Highest power of 2 bit is right-most (last in memory), right to left.
Code:
1<<0
1<<1
1<<2
1<<3
1<<4
1<<5
1<<6
1<<7
1<<1
1<<2
1<<3
1<<4
1<<5
1<<6
1<<7
1b. Intel (left-endian)
Highest power of 2 bit is left-most (first in memory), left to right.
Code:
1<<7
1<<6
1<<5
1<<4
1<<3
1<<2
1<<1
1<<0
1<<6
1<<5
1<<4
1<<3
1<<2
1<<1
1<<0
Also:
In Motorola-Endian, are words (2bytes) as follows:
2a.
Code:
1<<8
1<<9
1<<10
1<<11
1<<12
1<<13
1<<14
1<<15
1<<0
1<<1
1<<2
1<<3
1<<4
1<<5
1<<6
1<<7
1<<9
1<<10
1<<11
1<<12
1<<13
1<<14
1<<15
1<<0
1<<1
1<<2
1<<3
1<<4
1<<5
1<<6
1<<7
or:
2b.
Code:
1<<0
1<<1
1<<2
1<<3
1<<4
1<<5
1<<6
1<<7
1<<8
1<<9
1<<10
1<<11
1<<12
1<<13
1<<14
1<<15
1<<1
1<<2
1<<3
1<<4
1<<5
1<<6
1<<7
1<<8
1<<9
1<<10
1<<11
1<<12
1<<13
1<<14
1<<15
Also:
In Intel-Endian, are words (2bytes) as follows:
3a.
Code:
1<<15
1<<14
1<<13
1<<12
1<<11
1<<10
1<<9
1<<8
1<<7
1<<6
1<<5
1<<4
1<<3
1<<2
1<<1
1<<0
1<<14
1<<13
1<<12
1<<11
1<<10
1<<9
1<<8
1<<7
1<<6
1<<5
1<<4
1<<3
1<<2
1<<1
1<<0
or:
3b.
Code:
1<<7
1<<6
1<<5
1<<4
1<<3
1<<2
1<<1
1<<0
1<<15
1<<14
1<<13
1<<12
1<<11
1<<10
1<<9
1<<8
1<<6
1<<5
1<<4
1<<3
1<<2
1<<1
1<<0
1<<15
1<<14
1<<13
1<<12
1<<11
1<<10
1<<9
1<<8
I am so confused.
Also Blitz Basic, Blitz Plus, Blitz 3D seems to do it totally wrong for Intel-Endian for peeking/poking Signed Short Integers.
(signed __int16)