Hey, here some programming instructions for my second 8-bit computer:
-The program must be writen with filter
-The 1st column of the program (8 bits) specifies a value wich can be used by the instruction, here we will call this "V".
-The 2nd column of the program (3 bits) specifies a memory adress wich will be used by the instruction, here we will call this variable "A"
-The 3rd column of the program (4 bits) specifies an instruction for operation
all instructions:
0000 : pass
0001 : write "specified value" in A
0010 : print A
0011 : write A in the buffer
0100 : write buffer's value in A then del the buffer
0101 : write ALU's value in A then del the ALU
0110 : add A to ALU's value
0111 : subtract A to ALU's value
1000 : increment ALU's value
1001 : add A's high bit to ALU's value
1010 : add not(A) to ALU's value
1011 : jump next line if A
1100 : goto "specified value"
1101 : goto "specified value" if A
1110 : add a 8bit random value to ALU's value
1111 : stop the program
for exemple: a program wich compute and print fibonacci sequence:
00000001 000 0001 //write 1 in a
00000001 001 0001 //write 1 in b
00000000 000 0010 //print a
00000000 000 0110 //add a to ALU
00000000 001 0110 //add b to ALU
00000000 001 0011 //buffer=b
00000000 000 0100 //a=buffer
00000000 001 0101 //b=ALU's value (a+b)
00000010 000 1100 //go to first line