EasyManua.ls Logo

Texas Instruments TI-83-Plus - Put Away Code

Texas Instruments TI-83-Plus
188 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
120 Chapter 2: TI-83 Plus Specific Information
TI-83 Plus Developer Guide Third Release May 28, 2002
Put Away Code
This code should not be used when the application terminates on its own. An application
should follow the Stand-alone example to exit without the monitor initiating the
termination.
AppPutAway:
;
;
; Application gets itself ready for terminating by cleaning any system flags
; or saving any information it needs to.
;
RES plotLoc, (IY+plotFlags) ; draw to display & buffer
RES textWrite, (IY+sGrFlags) ; small font written to
; display
; This next call resets the monitor control vectors back to the App Loader
;
B_CALL ReloadAppEntryVecs ; App Loader in control of
; monitor
;
LD (IY+textFlags),0 ; reset text flags
;
; This next call is done only if application used the Graph Backup Buffer
;
B_CALL SetTblGraphDraw
;
; Need to check if turning off or not, the following flag is set when
; turning off:
;
BIT MonAbandon,(IY+monFlags) ; turning off ?
JR NZ, TurningOff ; jump if yes
;
; if not turning off then force control back to the home screen
;
; note: this will terminate the link activity that caused the application
; to be terminated.
;
LD A, iall ; all interrupts on
OUT (intrptEnPort), A
B_CALL LCD_DRIVERON ; turn on LCD
SET onRunning, (IY+onFlags) ; on interrupt running
EI ; enable interrupts
B_JUMP JForceCmdNoChar ; force to home screen
;
TurningOff:
B_JUMP Putaway ; force App loader to do its
; put away

Table of Contents

Other manuals for Texas Instruments TI-83-Plus

Related product manuals