def i_KRC(indirect, address, instruction): global AC AC |= Kbd.read() Kbd.clear() Trace.itrace('KRC') return 1
def i_KSN(): global PC if not Kbd.ready(): PC = (PC + 1) & WORDMASK Trace.itrace('KSN') return 1
def i_KSF(): global PC if Kbd.ready(): PC = (PC + 1) & WORDMASK Trace.itrace('KSF') return 1
def i_KCF(indirect, address, instruction): Kbd.clear() Trace.itrace('KCF') return 1