this is a colection of demo programs for the uffg emulator:
fibbonaci sequence
0 e 1 0
0 e 2 0
0 e 3 1
1 e 4 2
1 7 4 3
1 e 2 1
1 e 1 4
1 e 3 2
1 e 2 1
0 e f 3
0 f 0 0
assembly
mov r1, 0
mov r2, 0
mov r3, 1
loop:
mov r4, r2
add r4, r3
mov r1, r4
mov r3, r2
mov r2, r1
jmp loop
hlt
"hello world"
0 e 1 63
0 b 1 ff00
0 e 1 68
0 b 1 ff01
0 e 1 75
0 b 1 ff02
0 e 1 6a
0 b 1 ff03
0 f 0 0
assembly
mov r1, 0x63
stb r1, 0xff00
mov r1, 0x68
stb r1, 0xff01
mov r1, 0x75
stb r1, 0xff02
mov r1, 6a
stb r1, 0xff03
hlt
note: this website is best viewed with unix v4 on a pdp-11/45 system