1 ; swrom
-fast include file
, generated to by asm
/asm.py
, for tritstream
:
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
))}
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))}