Re: A83: Switching the calculator off


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

Re: A83: Switching the calculator off




Ahhhh, I tried this, and it worked fine on it's own, but when I put it in a
password program I made, it crashed my calc. Any sugestions why?
-----Original Message-----
From: James Matthews <matthews@tkb.att.ne.jp>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Saturday, 2 May 1998 11:22
Subject: Re: A83: Switching the calculator off


>
>Ok, for example:
>
>.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
>;Modified by JM.
>   ld hl,0302h    ; Just guessing the coords
>   ld (CURCOL),hl
>   ld hl,text
>   call _puts
>;End modification
>        RET
>
>:text
> .db "Mem Cleared",0
>
>.end
>
>I'm 99% sure that should work (given there's no typos :)...just put the
>stuff before the RET command.
>
>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
>____________________________________
>
>----------
>> From: Linus Akesson <lairfight@softhome.net>
>> To: James Matthews <assembly-83@lists.ticalc.org>
>> Subject: Re: A83: Switching the calculator off
>> Date: Thursday, April 30, 1998 2:37 AM
>>
>>
>> On 29-Apr-98, James Matthews wrote:
>>
>> >Why don't you just switch the program off mid-program.  Your program
>stays
>> >running when you turn the calc back on again.
>>
>> >James.
>>
>> No it doesn't! Or how do you mean, exactly?
>>
>> Linus
>>


Follow-Ups: