summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-05-14 14:19:36 -0400
committerTest_User <hax@andrewyu.org>2023-05-14 14:19:36 -0400
commit1e6377c101b17cb4b6140ef24d673e47e41cfa22 (patch)
tree036e093e3305c95821027627ce603232a24dd988
parentfd9a62701e4048ac6004052471d58f6383597fa0 (diff)
downloadspecification-1e6377c101b17cb4b6140ef24d673e47e41cfa22.tar.gz
specification-1e6377c101b17cb4b6140ef24d673e47e41cfa22.zip
Fix definition for MR
-rw-r--r--cpu/registers/config.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/registers/config.txt b/cpu/registers/config.txt
index 9ae7bbb..4fe8f42 100644
--- a/cpu/registers/config.txt
+++ b/cpu/registers/config.txt
@@ -5,7 +5,7 @@ MR (Mode Register)
On read
Gives supported modes
- If ((1 << ([desired mode in bytes] - 1)) & MR) != 0, then it is supported
+ If ((1 << log_2([desired mode in bits / 8])) & MR) != 0, then it is supported
Support for 16-bit mode, 64-bit mode, 128-bit mode, and 256 bit mode would be represented as 111010b