INP STA a loop LDA a OUT SUB step STA a BRP loop HLT a DAT step DAT 2