110825/tex/jkff101525.py

# (c) david vajda
# 10/15/25
# jk-ff

truth_table [0, 1, 0, 1, 1, 1]

def jkffouterfunk (bit):
    if b == 1:
        jkfffunc (1, 0, 1)
    else:
        jkfffunc (0, 0, 1)

def jkfffunc (sd, j, k):
    if (sd == 1) and (j == 0) and (k == 1):
        return 0
    else if (sd == 0):
        return 1