0 Members and 1 Guest are viewing this topic.
fnInt(S,0)ClrHome"A->ALbl 1Disp ARepeat getKey(15)EndFnOff //to be safeLnRegReturnLbl S //Interrupt subroutineIf getKey(54)Goto 1EndReturn
fnInt(S,0)ClrHome"A->ALbl 1Disp ARepeat getKey(15)If C0->CGoto 1EndEndFnOff //to be safeLnRegReturnLbl S //Interrupt subroutinegetKey(54)->CReturn
Lbl S //interruptIf getKey(54)sub(AB)EndReturn
:Lbl I:Return:...:Lbl S . Interrupt:If getKey(54):Goto I
:Lbl I:Return:...:Lbl S . Interrupt:If getKey(54):sub(I):Return
ClrHomefnInt(S,0)sub(A)Repeat getKey(15)EndFnOffLnRegReturnLbl ADisp 123>DecDisp i //imaginary iReturnLbl SIf getKey(54)sub(A)EndReturn
//Main loopReturnIf A=-1...Lbl SIf getkey(54)-1->AEndReturn
Asm(E1)