-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.txt
38 lines (30 loc) · 1.04 KB
/
table.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
INIT1 => INIT2
INIT2 => INIT
INIT
| i == @ => FETCH0
| _ => INIT
FETCH => EXEC
FETCH0 => FETCH1
FETCH1 FETCH ADD SUB (is)
| i == @ => HALT
| i == + => ADD
| i == - => SUB
| i == . => READ
| _ => ?
HALT => HALT
NEXT PREV => VDELAY
VDELAY => is, v = R!
tb0 != 1 && state != HALT => tb0
state read write wdata Dcode Dtape Dv Dis Dtb1 t r/f
INIT1 tape - - - +1 - - - - -
INIT2 tape - - - +1 - - - - -
INIT tape - - - +1 - - - - -
FETCH code - - +1 - - - - - r
FETCH0 code - - +1 -1 - - - - r
FETCH1 code - - +1 - R - - - r
HALT - - - - - - - - - rf
ADD - tape v+1 - - +1 - fetch - r
SUB - tape v+1 - - -1 - fetch - r
NEXT tape+1 - - - +1 - - - - r
PREV tape-1 - - - -1 - - - - r
VDELAY code - - +1 - - i - - r