|
DevelopmentSega Master System / Mark III / Game Gear |
Home - Forums - Games - Scans - Maps - Cheats - Credits |
There are two standard ways to store data larger than 8 bits: either to store it so the most significant bytes come first, or so they come last:
Value | $1234 |
---|---|
Big-endian storage | 12 34 |
Little-endian storage | 34 12 |
Both methods have advantages and disadvantages.
The Z80 is a little-endian CPU. That means that:
hl
, the most significant byte is in h
and the least significant in l
(think: h
igh, l
ow)