100
Do some clean up and let the system report the error.
Modify the error code to remove the GoTo option and have the system report
the error with only a Quit option.
Example one:
Do not allow the error to be reported by the TI-83 Plus. Compute 1/X and return CA = 0
if no error, otherwise return CA = 1.
;
;
; If no error then returns from the call
;
;
; control comes here if X = 0 and generates an error
;
My_Err_handle:
Example two:
Allow the error to be reported by the TI-83 Plus, but remove the GoTo option.
Compute 1/X.
;
;
; If no error then returns from the call
;
;
; control comes here if X = 0 and generates an error, ACC = error code
;
My_Err_handle:
TI-83 Plus Developer Guide
AppOnErr
My_Err_handle
B_CALL
RclX
B_CALL
FPRecip
AppOffErr
OR
A
RET
SCF
RET
AppOnErr
My_Err_handle
B_CALL
RclX
B_CALL
FPRecip
AppOffErr
RET
RES
7,A
B_JUMP
JError
Chapter 2: TI-83 Plus Specific Information
; OP1 = (X)
; 1/OP1,
; remove the error handler
; CA = 0 for no error
; CA = 1 for error
; OP1 = (X)
; 1/OP1,
; remove the error handler
; bit 7 of error code controls GoTo
; option
; trip the error with no GoTo option
Third Release May 28, 2002