Sharp OZ-707 Operation Manual - Page 38
Enter, command, location, stopped.
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 38 highlights
6. Continue the trace procedure and check if the program is executing properly by confirming program execution order and variable contents after each line is executed. If the program is not executing properly, correct the logic. 7. After debugging, enter TROFF IENTER I to exit the trace mode. Example: 10 INPUT "A=";A,"B=";B 20 C=A*2 30 D=B*3 40 PRINT "C=";C;" D=";D 50 END Run the program. RUN mode TRON IENTER I RUN IENTER I 8 IENTER I (Data entry) 9 IENTER I (Data entry) > A=_ Execute INPUT command B=_ C= 16 > D= 27 Execute PRINT command End of execution (prompt is displayed) The executed line number will be displayed at the right top for about 0.5 second. When execution is interrupted with the 00 key, recall the variables manually and check that the values are as expected. Pressing the [2] key will execute one statement at a time and entering CONT IENTER Iwill execute the statements continuously. Note: The trace mode will remain in effect unless TROFF IENTER I is entered, the ISHIFT II CeCE I keys are pressed, or the power is turned off. To debug by interrupting program execution: Perform one of the following: 00 • Press the key during program execution. 00 • Press the key in the trace mode. • Enter the STOP command at the location to be stopped. 64 The Break message will be displayed and execution will be interrupted. Then 1. Check the variable contents manually. 2. Press the [YJ key to execute subsequent statements line by line. Press the ISHIFT I [YJ keys or enter CONT IENTER I to return to previous operation. 00 • A program interrupted by the key or the STOP command can CSZJ be executed line by line by pressing the key. Trace messages will be displayed at each step. 65
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/38.png)