From 6b903059fe70a7be4b9a1b4d4e05a6765dadac0f Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Sat, 5 Feb 2022 20:12:35 +0100 Subject: [PATCH] Document endianness of `dw` and `dl` (#972) --- src/asm/rgbasm.5 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/asm/rgbasm.5 b/src/asm/rgbasm.5 index 49f8f819..ab10d704 100644 --- a/src/asm/rgbasm.5 +++ b/src/asm/rgbasm.5 @@ -1386,6 +1386,12 @@ Alternatively, you can use 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 ) ,