172 Debugging In summary, IPAUSE ON allows two unique features - The 8 key can be used to halt execution within an assembled routine. The I STEP I key can be used to execute individual assembly language instructions. Some key things to remember in using the IPAUSE ON facility - • This is an execution-time debugging tool. You must be executing your previously- assembled object code with an ICALL statement. If the source code is available for display, it will be displayed, otherwise the line is "reverse assembled". • Utilities are not stepped instruction-by-instruction, but rather as a unit. The I slip I key performs in BASIC just as before.
• Keeping the I STEP I key depressed causes repeated execution of the stepping function, the same as in BASIC. By way of example, suppose you had the following source code - 4a IHS:::::Ertf::;LE E::·::t r .. ·.::!.c t 5a Loop: LINPUT 7a IeALL E~~ract(A$) 1 ;20 I :::OUFCE 130 IS(UF~E String: 140 ISOUFCE SUB i 50 I ::::OtF:CE F'.::u····.::.iiiet ;;;:r:: :::TF i 710 I '::OtJPCE 1 ;::!;:~ I '::()UF"'(E 20j~~ I ::::Oi...!FCE 1. t3Ci I ~=;C!tJ~~C:E L..IiI:: ::;t r· (:i~~ L.JJ fi :::~:; i:. !--. 'j f"'~!;l ! Initialize stack pointer Initial ize counter ~;:: 1 13 I ':::OU:::::CE 22::1 I :::'=;OtJFCE 2313 I '::OUPC:E AliA :::tr"j nq fiDA ==1 ;;~':h1 I S (li...! PC E 26a ISOUFCE Loop: CBU F.:E't.
r' i E'i·)E' r'lE'::'::!:. c: t··~:i(·.3.ct E;·t-· I:;. 'i t. .3. C Cif(i1"!'i-:i '? CPi4 ::::5,::j.B .. H'fF 'r' e:::·