aboutsummaryrefslogtreecommitdiff
path: root/test_prog.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_prog.py')
-rw-r--r--test_prog.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test_prog.py b/test_prog.py
new file mode 100644
index 0000000..e6fdd11
--- /dev/null
+++ b/test_prog.py
@@ -0,0 +1,8 @@
+## import the instruction definitions
+import inst
+
+## little test programm, which loads two values from memory, adds them and
+## output it on the 7seg display
+
+## 0x1 and 0x2 are the values loaded into the registers
+prog = [inst.INST_LDA | 0x1, inst.INST_LDB | 0x2, inst.INST_ADD, inst.INST_HLT]