From dc5bb9bbe89e75612fc2929a5b0f5b0a5b8c0cd1 Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Thu, 31 Dec 2020 19:18:16 -0800 Subject: [PATCH] Added note explaining the format of register field definitions in pdp11_register.h. --- pdp11_register.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pdp11_register.h b/pdp11_register.h index b5a8e79..1ea9881 100644 --- a/pdp11_register.h +++ b/pdp11_register.h @@ -166,6 +166,12 @@ * ============================================================================= */ +/* + * These take the form of a 'width' and 'offset'. For example, if a field is 3 + * bits wide, occupying bits 3-5 (starting from 0), then it would be defined as + * (07),(3). + */ + #define MMR0_AB_NONRES (01),(15) #define MMR0_AB_PAGLEN (01),(14) #define MMR0_AB_RO (01),(13) -- 2.20.1