HP 64782 User Manual page 47

For the graphical user interface
Hide thumbs Also See for 64782:
Table of Contents

Advertisement

Getting Started
Step 12: Patch assembly language code
Notice in the emulator/analyzer interface that the instruction at address
"main" has changed.
Click on the Patch () action key again.
8
A window running the vi editor again appears, allowing you to modify the
patch code that was just created.
Modify the line you added previously to:
9
LINK A6,#0
Exit out of the editor, saving your changes.
10
The file you just edited is assembled, and the patch main menu appears.
Type "a" and press <RETURN> to apply the patch.
11
Notice in the emulator/analyzer interface that the instruction at address
"main" has been changed back to what it was originally.
When patching a single address, make sure the new instruction takes up the
same number of bytes as the old instruction; otherwise, you may
inadvertently modify code that follows.
Type "main+4 thru main+15" in the entry buffer.
12
By entering an address range in the entry buffer (that is, <address> thru
<address>) before clicking on the Patch () action key, you can modify a
patch template file which allows you to insert as much or as little code as you
wish.
If you make a mistake while editing the patch, then save the changes, when
you enter the file again to fix the mistake, a "duplicate symbol" error will
appear on the INCLUDE PCHSINC.s" line when the patch is reassembled.
Although this message is displayed, it will not affect the new patch assembly.
46

Advertisement

Table of Contents
loading

Table of Contents