blob: a227920ae863372e80f6d1b44a6c27942607d569 (
plain)
1
2
3
4
5
6
7
8
9
|
## 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_A,
inst.INST_REG_A_OUT, inst.INST_HLT]
|