Searching Memory For Strings Or Numeric Expressions - HP H8/3003 User Manual

Emulator terminal interface
Table of Contents

Advertisement

Searching
Memory for
Strings or
Numeric
Expressions
pattern match at address:
pattern match at address:
pattern match at address:
pattern match at address: 0001024
Making Program
Coverage
Measurements
The HP 64700 Emulator provides you with tools that allow you to
search memory for data strings or numeric expressions. For example,
you might want to know exactly where a string is loaded. To locate the
position of the string "THIS IS MESSAGE A" in the sample program.
Type:
M> ser 2000..2fff="THIS IS MESSAGE A"
0002000
You can also find numeric expressions. For example, you might want
to find all of the CMP.B instructions in the sample program. Since a
CMP.B instruction begins with aa hex, you can search for that value by
typing:
M> ser -db 10000..106f=0aa
000101a
000101e
In testing your program, you will often want to verify that all possible
code segments are executed. With the sample program, we might want
to verify that all of the code is executed if a command "A", command
"B", and an unrecognized command are input to the program.
To make this measurement, we must first reset the coverage status.
M> cov -r
Getting Started 2-29

Advertisement

Table of Contents
loading

Table of Contents