116 Chapter 2: TI-83 Plus Specific Information
TI-83 Plus Developer Guide Third Release May 28, 2002
Exit Code
The application wants to terminate and return to normal TI-83 Plus operations. Some of
the calls in this sequence are not always needed — see the comments.
The following sequence exits the application cleanly even if the hardware stack is not at
the same level upon entry to the application. The stack is reset by the system.
ExitCode:
LD (IY+textFlags),0 ; reset text flags
;
; This next call is done only if application used the Graph Backup Buffer
;
B_CALL SetTblGraphDraw
;
B_CALL ReloadAppEntryVecs ; make sure Application Loader set
;
B_JUMP JForceCmdNoChar ; force to home screen
Fig. 2.27 shows the sequence of events once the application executes the B_JUMP to
JForceCmdNoChar instruction.
Application
B_JUMP to ForceCmdNoChar
Monitor
Reset stack and informs monitor
to switch to home screen
Monitor
Informs Application Loader
to close
Application Loader
Cleans up
Monitor
Control to Home screen
Home screen
Starts up
Fig. 2.17: Event Sequence