diff options
| author | Benedict <benedict@0xb8000.de> | 2018-04-16 10:23:49 +0200 |
|---|---|---|
| committer | Benedict <benedict@0xb8000.de> | 2018-04-26 11:19:01 +0200 |
| commit | a34ee32c743b35170777038a4c3ebbabf5686b43 (patch) | |
| tree | 1df2053d6dd64e64626b542532fa0a42dbbaea18 /test_prog.py | |
| parent | 831920937a1541d6c15b357d3e0336c3291d8084 (diff) | |
eeprom: control logic: define instructions layout and write out script
Diffstat (limited to 'test_prog.py')
| -rw-r--r-- | test_prog.py | 8 |
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] |
