ref: 6b903059fe70a7be4b9a1b4d4e05a6765dadac0f
parent: eb5af70d79cd35d4383d7746a0190ce423119344
author: Eldred Habert <[email protected]>
date: Sat Feb 5 15:12:35 EST 2022
Document endianness of `dw` and `dl` (#972)
--- a/src/asm/rgbasm.5
+++ b/src/asm/rgbasm.5
@@ -1386,6 +1386,12 @@
to store a list of words (16-bit) or
.Ic DL
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
Strings are handled a little specially: they first undergo charmap conversion (see
.Sx Character maps ) ,