[A83] Re: Push/PopErrHandler


[Prev][Next][Index][Thread]

[A83] Re: Push/PopErrHandler





They're handled through macros. Use

AppOnErr &label

to set a error handler and:

AppOffErr

to uninstall the error handler. The SDK has full documentation on it all.

Later,

James.


> -----Original Message-----
> From: assembly-83-bounce@lists.ticalc.org
> [mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Joe Pemberton
> Sent: 30 November 2001 01:05
> To: assembly-83@lists.ticalc.org
> Subject: [A83] Re: Push/PopErrHandler
>
>
>
> Any idea what it is on the 83+?
>
> >
> >A few weeks ago, somebody asked what the equates were of _pushErrHandler
> and
> >_popErrHandler on the 83-.
> >
> >I answered what they were, but they didn't seem to work. Since I recently
> >needed them too, I now figured out why that was. ...and it was..... TI's
> >fault of course, who else? :P Anyway, if you do the following it should
> >work. Include the "Error Handler Routines" and call them instead of the
> real
> >TIOS error handler routines.
> >
> >
> >.nolist
> >_pushErrHandler  =46A5h
> >_popErrHandler   =46A9h
> >.list
> >
> >.org 9327h
> >
> >    ld    hl,tooDangerous
> >    call  pushErrHandler
> >[..do some dangerous stuff..]
> >    call  popErrHandler
> >    ret
> >
> >tooDangerous:
> >[..here you come when it was too dangerous..]
> >    ret
> >
> >;==============================
> >; Error Handler Routines
> >;==============================
> >
> >pushErrHandler:
> >    ld    de,(_pushErrHandler+1)
> >    push  de
> >    ret
> >
> >popErrHandler:
> >    ld    hl,(_popErrHandler+1)
> >    jp    (hl)
> >
> >.end
> >
> >
> >
> >
>
> _____________________________________________
> Free email with personality! Over 200 domains!
> http://www.MyOwnEmail.com
>
>
>





References: