summaryrefslogtreecommitdiff
path: root/cpu/registers/pointers.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/registers/pointers.txt')
-rw-r--r--cpu/registers/pointers.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpu/registers/pointers.txt b/cpu/registers/pointers.txt
new file mode 100644
index 0000000..e02db04
--- /dev/null
+++ b/cpu/registers/pointers.txt
@@ -0,0 +1,11 @@
+IP (Instruction Pointer)
+ Pointer to the current instruction being executed
+ It is not directly affected by OR
+
+ Read-only, can be set by certain jump instructions
+
+SP (Stack Pointer)
+ Pointer to the bottom of the stack (grows down) (used implicitly by push/pop instructions)
+
+BP (Base Pointer)
+ Pointer to the top of the stack (grows down) (used implicitly by push/pop instructions)