Add actual-size picture of boards layout (OmniGraffle document).
[trinary.git] / asm / guess.sp
blob5c51d1aa2ae7fc052396c5018899344f3bc54937
1 ; swrom-fast include file, generated to by asm/asm.py, for tritstream:
2 ; 101
3 ; 0i0
4 ; ii1
6 ; Select a voltage value based on the logic input at A
7 .func choose(A,for_n,for_z,for_p) {if(A<={V_N_max},for_n,if(A>={V_P_min},for_p,for_z))}
9 ; Threshold voltages
10 .param V_N_max=-2
11 .param V_P_min=2
13 .func program_i(A) {choose(A,V(1),V(0),V(_1))}
14 .func program_0(A) {choose(A,V(0),V(_1),V(_1))}
15 .func program_1(A) {choose(A,V(1),V(0),V(1))}