Prestoring States - HP 64700 Series User Manual

64000-ux case solutions for microprocessors, softkey interface
Hide thumbs Also See for 64700 Series:
Table of Contents

Advertisement

P restoring States
1
2-16 Getting Started
of the trace list). This is expected because the sample program
writes the current random number using the second previous
random number as an offset into the RESULTS area.
Suppose you find a defect in a subroutine, but you determine that
the problem is actually due to something set up by the calling
routine. If the subroutine is called from a variety of places in your
program, you need to find out which callers cause the problem.
Prestore can be used to find the callers of the subroutine.
Prestore allows you to save up to two states which precede a
normal store state. Prestore is turned off by default. However, you
can include a prestore qualifier in the command line to qualify the
states which are prestored.
As an example, let's use a prestore qualifier to show which caller of
WRITE_NUMBER corresponds to each value written to the
RESULTS area. Because the BSR assembly language instruction
is used to call a subroutine, you can qualify prestore states as states
whose data equals the BSR opcode (6100H). For example:
trace after AGAIN
only range RESULTS thru RESULTS+0ffh
prestore data 6100h <RETURN>

Advertisement

Table of Contents
loading

Table of Contents