From 98a5c8a93c8cdba5ad51dd7665ac1fad7c8b4b3c Mon Sep 17 00:00:00 2001 From: Themis Demetriades Date: Wed, 12 Jun 2024 19:15:33 +0100 Subject: [PATCH] Add comment explaining getField macro in decode w/ S --- src/emulator/decode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emulator/decode.c b/src/emulator/decode.c index 3fbaaa6..78dcbac 100644 --- a/src/emulator/decode.c +++ b/src/emulator/decode.c @@ -13,6 +13,8 @@ #include "decode.h" #include "../shared/binary_util.h" +// Macro that calls getBit() for a bitfield whose constants follow the format +// FIELDNAME_LSB and FIELDNAME_MSB, storing the result in the variable wrd #define getField(fieldname) getBits(wrd, fieldname##_LSB, fieldname##_MSB) /************************************