Re: A83: Shutdown stuff.


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

Re: A83: Shutdown stuff.




Can someone make me an asm program that asks if you want to shutdown, then when
restarted displays used, and free mem.

Any help will be appreciated,

Phelan 'Amen' Wolf

James Matthews wrote:

> Yes!  It works!  Ok, now that it works I'll post my little bit of help.
> Phelan:  here's the shutdown code if you haven't found it.
>
> ; CALCOFF.ASM  v1.0
> ; Turns your ti-83 calculator off
>
> .NOLIST
> #define equ .equ
> #define EQU .equ
> #define end .end
> #include "ti83asm.inc"
> #include "tokens.inc"
> .LIST
>
> .org 9327h
>
> 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
> ;
> ;  Put code here that you want to execute when the calculator turns back on
> ;
>         RET
>
> .end
>
> There you go...hope it helps.
>
> James.
> ____________________
>
> James Matthews.
> E-mail (family):    matthews@tkb.att.ne.jp
> E-mail (private):  james_matthews@hotmail.com
>
> Homepage:  http://home.att.ne.jp/gold/tomcat21/index2.html
> ICQ:  7413754
> ____________________________________




References: