Chapter 2: TI-83 Plus Specific Information 43
TI-83 Plus Developer Guide Third Release May 28, 2002
AppObj
• Entry Point
Arc_Unarc
If the variable in OP1 is archived, unarchive it, otherwise archive it.
See the System Routine Documentation for further information.
System errors can be generated. See the Error Handlers section for further
information.
A battery check should be done before attempting to archive a variable. There is a
risk of corrupting the archive if the attempt fails due to low batteries. Applications
should display a message informing users to replace the batteries if low batteries are
detected.
As an Archive example, archive the variable whose name is in OP1.
B_CALL Chk_Batt_Low ; check battery level
RET Z ; ret if low batteries
;
B_CALL ChkFindSym
RET C ; return if variable does not exist
LD A,B ; get archived status
OR A ; if non zero then it is archived
; already
RET NZ ; ret if archived
AppOnErr errorHand ; install error handler
;
B_CALL Arc_Unarc ; archives the variable
;
AppOffErr ; remove error handler
errorHand:
RET
Related Routines
ChkFindSym Searches the Symbol Table for a variable.
MemChk Returns the amount of free RAM available.
See the System Routine Documentation for further information.