Re: A83: Switching the calculator off
[Prev][Next][Index][Thread]
Re: A83: Switching the calculator off
Well, no. That code will be run while the lcd is off. Still, your program
would work since it's a one time write-some-text-to-the-screen program. But I
think I've found a solution now - if I turn off timer interrupts
aswell as on interrupts I could busyloop and poll bit 3 of port 3 (on
pressed). I think I'll have a go at that...
Linus
On 02-May-98, James Matthews wrote:
>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
>>
References: