mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Document endianness of dw and dl (#972)
This commit is contained in:
@@ -1386,6 +1386,12 @@ Alternatively, you can use
|
|||||||
to store a list of words (16-bit) or
|
to store a list of words (16-bit) or
|
||||||
.Ic DL
|
.Ic DL
|
||||||
to store a list of double-words/longs (32-bit).
|
to store a list of double-words/longs (32-bit).
|
||||||
|
Both of these write their data in little-endian byte order; for example,
|
||||||
|
.Ql dw $CAFE
|
||||||
|
is equivalent to
|
||||||
|
.Ql db $FE, $CA
|
||||||
|
and not
|
||||||
|
.Ql db $CA, $FE .
|
||||||
.Pp
|
.Pp
|
||||||
Strings are handled a little specially: they first undergo charmap conversion (see
|
Strings are handled a little specially: they first undergo charmap conversion (see
|
||||||
.Sx Character maps ) ,
|
.Sx Character maps ) ,
|
||||||
|
|||||||
Reference in New Issue
Block a user