welcome to forum post: c1t (computer)
sorry for type fail in titel
if there is a bug please notify
program instructions:
bits: 1 = alu/cpu
bits: 2-4 = instructions
bits: 5-8 = data
instructions for bits 1
0 = cpu
1 = alu
instructions for bits 2-5 cpu
000 = jump [adr|data bits]
001 = number [num|data bits]
010 = delete (num) []
011 = reg [num|data bits]
100 = delete (reg) []
101 = read (reg) []
110 = reset (all) []
111 = end []
instructions for bits 2-5 alu
000 = add (if bits 5-8 = 0 register A * 2 else register A + bits 5-8) [num|data bits]
registers
A
(1)
instructions for bits 5-8 (num)
0000 = 0
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6
0111 = 7
1000 = 8
1001 = 9
1010 = 10 (A)
1011 = 11 (B)
1100 = 12 (C)
1101 = 13 (D)
1110 = 14 (E)
1111 = 15 (F)