[A83] Re: Push/PopErrHandler


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

[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





Follow-Ups: