HP 68000 Series User Manual page 201

Debugger/simulator
Table of Contents

Advertisement

25
count = 5;
26
for (i=0; i < MAXNUM; i++)
27
{
28
array[i]=1;
29
count=count+2;
30
k=count*i;
31
}
To delete lines 29 and 30, and insert a new line incrementing count by one, you
could write the following macro:
Debugger Macro Add patch_29()
{
count++;
$Expression C_Expression @PC = #31$;
return(1);
}
.
To execute the code patch, enter the command:
Breakpt Instr #29;patch_29()
and run your program.
Chapter 5: Editing Code and Data
Patching Source Code
179

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents