Chapter 2: TI-83 Plus Specific Information 109
TI-83 Plus Developer Guide Third Release May 28, 2002
For example, parse the graph equation Y1 and store the answer in Y. Install an error
handler around the parsing and the storing routine to catch any errors. RET CA = 0 if
OK, else ret CA = 1.
LD HL,y1Name
RST rMov9ToOP1 ; OP1 = Y1 name
;
AppOnErr ErrorHan ; error handler installed
;
B_CALL ParseInp ; parse the equation
;
; returns if no error
;
B_CALL CkOP1Real ; check if RealObj
JR Z,storit ; if a RealObj, try to store to Y
;
AppOffErr ; remove the error handler
;
; come here if any error was detected
; error handler is removed when the error occurred
;
ErrorHan:
B_CALL CleanAll ; remove temps if any
SCF ; set CA flag to signal failure
RET
;
storit:
;
B_CALL StoY ; store to Y, ret if no error, else
; ErrorHan
;
AppOffErr ; remove error handler
;
B_CALL CleanAll ; remove temps if any
CP A ; CA = 0 for no error
RET
;
y1Name:
DB EquObj, tVarEqu, tY1, 0