From a34ee32c743b35170777038a4c3ebbabf5686b43 Mon Sep 17 00:00:00 2001 From: Benedict Date: Mon, 16 Apr 2018 10:23:49 +0200 Subject: eeprom: control logic: define instructions layout and write out script --- test_prog.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test_prog.py (limited to 'test_prog.py') 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] -- cgit v1.2.3-70-g09d2