We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

big endian: Difference between revisions

From SnesLab
Jump to: navigation, search
(Recovered from SMWiki, improvements are welcome.)
 
(categories)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Big endian refers to a storage of values beyond one byte. It's also known as '''MSB''' (most significant byte). It's a contrast to [[little endian]] which stores in the opposite fashion. In big endian, the order of the bytes which are stored are not changed.
'''Big endian''' refers to a storage of values beyond one byte. It's also known as '''MSB''' (most significant byte). It's a contrast to [[little endian]] which stores in the opposite fashion. In big endian, the order of the bytes which are stored are not changed.


== Example ==
== Example ==


The 16-bit value $4782 would be stored as $47 $82, and the 24-bit value $426955 would be stored as $42 $69 $55. Notice how the byte order does not change. This is how big endian works.
The 16-bit value $4782 would be stored as $47 $82, and the 24-bit value $426955 would be stored as $42 $69 $55. Notice how the byte order does not change. This is how big endian works.
=== See Also ===
* [[little endian]]
* [[XBA]]
[[Category:SNES Hardware]]
[[Category:ASM]]

Latest revision as of 03:13, 9 August 2024

Big endian refers to a storage of values beyond one byte. It's also known as MSB (most significant byte). It's a contrast to little endian which stores in the opposite fashion. In big endian, the order of the bytes which are stored are not changed.

Example

The 16-bit value $4782 would be stored as $47 $82, and the 24-bit value $426955 would be stored as $42 $69 $55. Notice how the byte order does not change. This is how big endian works.

See Also