Re: A86: Re: power down


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

Re: A86: Re: power down




Yes, that'll do it. In fact, it's always good to res 4,(iy+9) whenever you
leave your program. That way if your program was called from a BASIC program
or even some shells, it won't break out of it.

----- Original Message -----
From: Bryan Kam <bryan_kam@usa.net>
To: <assembly-86@lists.ticalc.org>
Sent: Thursday, December 09, 1999 6:53 PM
Subject: RE: A86: Re: power down


>
> I was messing around with this calc-off code and had a problem running it
> from a BASIC program (I don't know why you would want to, but in case you
do
> . . .) because the BASIC would pick up the ON press and break.  I tried
> adding the line
>
> res 4,(IY+$09)
>
> after the code that Kirk gave and turns off the ON bit (I think, but I'm
not
> sure since I'm a beginner) so the calc doesn't register it.  So if you're
> worried that the calc will pick up the ON, just add that after.
>
> Bryan
>
> -----Original Message-----
> From: owner-assembly-86@lists.ticalc.org
> [mailto:owner-assembly-86@lists.ticalc.org] On Behalf Of Kirk Meyer
> Sent: Tuesday, December 07, 1999 5:48 PM
> To: assembly-86@lists.ticalc.org
> Subject: A86: Re: power down
>
>
> If you want to return to your program ( I assume you do ) then do this:
>
>  ld a,1
>  out (3),a
>  halt
>  ld a,11
>  out (3),a
>
> ----- Original Message -----
> From: Brent Schneider <brent@calc.org>
> To: <assembly-86@lists.ticalc.org>
> Sent: Tuesday, December 07, 1999 5:49 PM
> Subject: A86: power down
>
>
> >
> > What is the most efficient way to power down the calc in asm?
> >
> > Thanks,
> > Brent
> >
> >
>
>
>



References: