summaryrefslogtreecommitdiff
path: root/cpu/interrupts/software/execution.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/interrupts/software/execution.txt')
-rw-r--r--cpu/interrupts/software/execution.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/interrupts/software/execution.txt b/cpu/interrupts/software/execution.txt
new file mode 100644
index 0000000..0cad31b
--- /dev/null
+++ b/cpu/interrupts/software/execution.txt
@@ -0,0 +1,8 @@
+When calling a software interrupt:
+ R0 gets overwritten with the current PR
+ R1 gets overwritten with a pointer of the same segment as IP, pointing to the next instruction
+ PR is set to all 1s
+
+When returning via iretp:
+ PR is set to R0
+ Execution jumps to R1