To Verify Correct Return From A Function Call - HP 1660CS-Series User Manual

Logic analyzers
Table of Contents

Advertisement

To verify correct return from a function call

The exit code for a function will often contain instructions for deallocating
stack storage for local variables and restoring registers that were saved
during the function call. Some language implementations vary on these
points, with the calling function doing some of this work, so you may need to
adapt the procedure to suit your system.
Go to the state analyzer's Trigger menu.
1
Define terms SR_START and SR_END to represent the start and end
2
addresses of the subroutine.
Under State Sequence Levels, insert 2 more sequence levels and enter
3
the following sequence specification:
While storing "anystate" Find "SR_START" Occurs "1" Else on "no state" go
to level "1"
While storing "anystate" Then find "SR_END" Occurs "1" Else on "no state"
go to level "2"
While storing "anystate" TRIGGER on "≠ SR_START" Occurs "1" Else on
"SR_START" go to level "2"
Verifying correct return from a function call
Single-Machine Trigger Examples
To verify correct return from a function call
5-13

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

1662cs1663cs1660cs1661cs

Table of Contents