projects
/
pdp11-memory-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor update to example used for register bit field.
[pdp11-memory-test]
/
pdp11_register.h
diff --git
a/pdp11_register.h
b/pdp11_register.h
index
b5a8e79
..
1fab2e5
100644
(file)
--- a/
pdp11_register.h
+++ b/
pdp11_register.h
@@
-166,6
+166,12
@@
* =============================================================================
*/
* =============================================================================
*/
+/*
+ * These take the form of "(width),(offset)". For example, if a field is
+ * 4-bits wide and occupies bits 2-5 (starting from 0), then it would be
+ * defined as "(017),(2)".
+ */
+
#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)