blob: d01139d2087a63164c8244232c24f015b44af044 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import inst
## this programm computes the fibonacci sequence
## load the start values 1 and 1 into the two registers
## add the content of the two registers and save it alternating into the two
## registers, an repeat
prog = [inst.INST_LDA | 0x1, inst.INST_LDB | 0x1, inst.INST_REG_A_OUT,
inst.INST_ADD_A, inst.INST_REG_A_OUT, inst.INST_ADD_B,
inst.INST_REG_B_OUT, inst.INST_PC_LOAD | 0x3]
|