HP B1476 68020 User Manual page 48

Debugger/emulator
Table of Contents

Advertisement

Chapter 1: Getting Started with the Graphical Interface
To patch code using a macro
Debugger Macro Add int patch_temp()
{
/* set the current_temp to be 71 degrees instead of what the code says */
current_temp = 71;
/* Restart execution at line # 39 -- Skips over the code too!!
$Memory Register @PC = #39$;
/* Return value indicates continuation logic: 1=continue, 0=break */
return(0);
}
.
4 Exit the editor.
5 Click on the Attach button in the dialog box.
The plus sign ("+ ") in front of line 38 indicates that a macro has been attached
to a breakpoint at that line.
6 Click on the Run Xfer action key to run the program.
24
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1476 68030

Table of Contents