summaryrefslogtreecommitdiff
path: root/tb/sim/irq.py
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-13 23:21:32 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-16 16:29:10 -0600
commit8c06c97c81339f68e06ff465aac2d8b1f2da4e27 (patch)
tree05e71f5508f4f00cb0abd6b0ec0d35d441313de8 /tb/sim/irq.py
parentf3c153f342ed969b1abfbe79d1017b651f21a649 (diff)
Implement interrupt emulation
Diffstat (limited to '')
-rw-r--r--tb/sim/irq.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tb/sim/irq.py b/tb/sim/irq.py
new file mode 100644
index 0000000..9691e4c
--- /dev/null
+++ b/tb/sim/irq.py
@@ -0,0 +1,4 @@
+def final():
+ assert_reg(r0, 1)
+ assert_reg(r1, 0b01)
+ assert_reg(r2, 2)