Added note explaining the format of register field definitions in pdp11_register.h.
authorAaron Taylor <ataylor@subgeniuskitty.com>
Fri, 1 Jan 2021 03:18:16 +0000 (19:18 -0800)
committerAaron Taylor <ataylor@subgeniuskitty.com>
Fri, 1 Jan 2021 03:18:16 +0000 (19:18 -0800)
pdp11_register.h

index b5a8e79..1ea9881 100644 (file)
  * =============================================================================
  */
 
  * =============================================================================
  */
 
+/*
+ * 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)
 #define MMR0_AB_NONRES (01),(15)
 #define MMR0_AB_PAGLEN (01),(14)
 #define MMR0_AB_RO     (01),(13)