Re: A82: Turning Calc off
[Prev][Next][Index][Thread]
Re: A82: Turning Calc off
>Does anyone know of a better way to turn the calc off controlled in asm
>other than:
>
>CALL $07EA
>
>I'm looking for a way the batteries could be dismantled while it's in
>this "off" mode and no data will be lossed?
>
>Please let me know if there is a way to do this thing I inquire about.
>
>Thanks,
>Jon Johnson
this should work:
DI ; disable interrupts
LD A, 01 ; bit 3 = lcd status
OUT ($03), A ; bit 0 = ON-interrupt status
EI ; enable interrupts
HALT ; wait for ON (that's the only interrupt)
RES 4, (IY $09) ; Turn off 'ON' flag
RET
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com