blob: e6fdd119c54636a6a0c362feedeb47353eafe25b (
plain)
1
2
3
4
5
6
7
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]
|