HP 64751 User Manual page 46

Graphical user interface
Table of Contents

Advertisement

Chapter 1: Getting Started
Step 12: Patch assembly language code
5 Type "main+4 thru main+15" in the entry buffer.
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.
6 Click on the Patch () action key again.
A window running the vi editor again appears. Suppose you want to patch the
demo program so that the proc_spec_init() function is called before the
init_system() function. Suppose also that there is memory available at address
8800H. Edit the patch template file as shown below.
; PCHS700 Assembly Patch File: PCHmain+4.s
;
; Date : Tue Jun 30 14:06:06 MDT 1992
; Dir
: /users/guest/demo/debug_env/hp64751
; Owner: guest
;
INCLUDE PCHSINC.s
ORG main+4
BRA patch1
ORG 8800h
patch1:
; !!!!!!!!! You may need to modify labels and operands of the
; !!!!!!!!! following code to match your assembler syntax
; !!!!!!!!! Patching Range: main+4 thru main+15
; !!!!!!!!! Insert new code here !!!!!!!!!
JSR _proc_spec_init
JSR _init_system
BRA main+16
Notice that symbols can be used in the patch file. Exit out of the editor, saving
your changes.
The file you just edited is assembled, and the patch main menu appears. Type "a"
and press <RETURN> to apply the patch.
You can step through the program to view execution of the patch.
46
;You may want to change this name!
;You MUST set this address!
;You MUST set this address also!
!!!!!!!!!
!!!!!!!!!

Advertisement

Table of Contents
loading

This manual is also suitable for:

6834064704

Table of Contents