Re: A83: OFF command


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

Re: A83: OFF command




On Fri, 14 May 1999 18:38:37 +0200, M.Delmas wrote:
>
>
>I want to turn my TI off and I wonder if a simple command exists. I think 
>so
>because I suppose the [2nd] & [OFF] command don't load a lot of call. And I
>read that such command exist on other calc (I think on TI85) and you just
>have to put "call $XXXX".
>

Here is a power off routine, straight from James Matthew's ASMGURU:

OFF:
        DI			; disable interrupts
        LD A,001H
        OUT (003H),A		; turn off screen
        LD A,000H
        OUT (004H),A
        EX AF,AF'
        EXX
        EI			; enable interrupts
        RET

.end

There ya go.

James Vernon
jimbob_v@hotmail.com


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com