A86: A hopeful beginners question


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

A86: A hopeful beginners question



 I have been trying to figure out how to shutdown the calc,  the following
routine shuts it down, but it will not let it turn on again.  You have to
take out the batteries.  It doesn't reset the memory though when you do.
Could I get some help in letting me know a off routine that turns the calc
off then enables you to turn it back on again.

OFF:
     DI
     ld a,001H
     out (003H),A
     ld A,000H
     out (004H),A
     EX AF,AF'
     EXX
     EI
     RET
Thanx