Agilent Technologies DP235 Uživatelská příručka Strana 108

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 628
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 107
108
Triggering Examples
Single-Machine Trigger Examples
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.
1 Go to the state analyzer's Trigger menu.
2 Define terms SR_START and SR_END to represent the start and
end addresses of the subroutine.
3 Under State Sequence Levels, insert 2 more sequence levels and
enter 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
Zobrazit stránku 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 627 628

Komentáře k této Příručce

Žádné komentáře