Re: A86: On Interrupt Questions


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

Re: A86: On Interrupt Questions




Wil Mahan wrote:
> 
> I am attempting to use the following code in a program to turn the
> calculator off:
> 
>         ld      a,%00000001
>         out     (3),a
>         halt
>         res     onInterrupt,(iy+onflags)
> 
> but when I run the program and press On to turn the calc back on, it
> turns on sometimes, but other times the calc stays off. I usually have
> to press On 3 or 4 times before I can get it to power on again. Could
> someone show me how to fix this problem?

use a variable to show the toggling of on/off state or send a key to the
pad right after the calc turns back on (right after you have the line to
shut it off)


References: