Chapter 1: Getting Started with the Graphical Interface
To patch code using a macro
To patch code using a macro
1 Position the cursor over line 38.
2 Select Attach Macro from the Code window pop-up menu.
The Macro Operations dialog box appears. The macro "patch_temp" is
already selected. Before we attach the macro, let's examine it:
3 Click on the Edit button in the dialog box.
This macro will set current_temp to 71 each time the breakpoint is
encountered. The macro skips over the assignment in the program source
code by setting the program counter to line 39. The return value of 0 tells the
macro to stop program execution after the macro.
22