summaryrefslogtreecommitdiff
path: root/tb/sim/hazards.py
diff options
context:
space:
mode:
Diffstat (limited to 'tb/sim/hazards.py')
-rw-r--r--tb/sim/hazards.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tb/sim/hazards.py b/tb/sim/hazards.py
new file mode 100644
index 0000000..9fa3e44
--- /dev/null
+++ b/tb/sim/hazards.py
@@ -0,0 +1,9 @@
+SP = 256
+
+mem_dumps = [range(SP - 4, SP)]
+
+def final():
+ assert_reg(r0, 59)
+ assert_reg(r1, 0)
+ assert_reg(sp, SP)
+ assert_mem(SP - 4, 3)