summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-22 11:34:22 -0400
committerIan Moffett <ian@osmora.org>2025-07-22 11:34:22 -0400
commit36cd394c94d4344f551e7a66806700c99891374d (patch)
tree311525352327b943dcce4be37cb02a6980cd0f31
parent847135de90abf538866eb30add00dbe6ef037c0c (diff)
docs: Define SR_STATE.CARRY bit
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index af9ba65..e6b1963 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,8 @@ cannot be accessed via the "mov" instruction and instead rely on independent wrs
|------|---------------------- | ---------------------- |
| 0 | Reserved | Must be zero |
| 1 | Supervisor | Supervisor mode enable |
-| 2-31 | Reserved (must be 0) | Must be zero |
+| 2 | Carry | Arithmetic carry flag |
+| 3-31 | Reserved (must be 0) | Must be zero |
#### Supervisor bit
@@ -56,6 +57,10 @@ by system software to transition the processor into a user context. This bit
may only transition from a 0 to a 1 during an interrupt/trap, therefore manually
writing a 1 to this bit is ignored by the processor.
+#### Carry bit
+Indicates whether an arithmetic operation has resulted in a
+carry/borrow.
+
## Instructions