[A83] Re: _getkey and turning the calc off
[Prev][Next][Index][Thread]
[A83] Re: _getkey and turning the calc off
With Venus you would only loose 3 bytes, which is still not acceptable of course, but if you completely want to prevent the user pressing 2nd+on you must install an interrupt which does so. SOS has one built-in. You might want to take a look at the source code.
Basicly the interrupt routine does this:
check for on-key press, I think that's done with port 3 (at least on the 83-)
if [on] is pressed, reset the flag that indicates the status of the 2nd-key
> ----------------------------------------
> From: Perpendicular Universe <vadmium@hotmail.com>
> Sent: Wed Aug 22 05:43:37 GMT+02:00 2001
> To: <assembly-83@lists.ticalc.org>
> Subject: [A83] _getkey and turning the calc off
>
>
>
> Is there any way of preventing someone turning the calculator off in the
> _getkey routine, or even better, making the calculator free my program's
> memory before it turns off?
>
> I have made a fairly large program which uses the ROM call _getkey (address
> 4CFEh). When you press [2nd] [OFF] in the middle of the program to turn the
> calc off, and then turn it back on, the screen comes up the same but it
> isn't in my program: it's in the "home screen" mode.
> I can live with that, but what I don't like is each time someone turns it
> off like this the memory available goes down and I dunno how to free it back
> up without resetting the calc.
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>
-----------------------------------------------------
Mail.be, Free WebMail and Virtual Office
http://www.mail.be