Re: LZ: power off


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

Re: LZ: power off



Mike Berry wrote:
> 
> ----------
> From: Keith Batten <99kbatten@kamsc.k12.mi.us>
> To: 'list-zshell@lists.ticalc.org'
> Subject: RE: LZ: power off
> Date: Wednesday, September 25, 1996 9:57 PM
> 
> >just use this routine to turn off yer calc(it will turn back on when you
> >press [ON])
> >       ld a, 1b
> >       out (3), a
> >       di
> >       halt
> >       ei
> >       ld a, 1011b
> >       out (3), a
> >
> >PCoMP
> >Visit Maximus Productions home page at: http://www.ntsource.com/~pcomp
> 
> i know about that routine but does anyone know how to use it to turn off
> the calculator when the [ON] key is pressed? ive tried but it always messes
> up.
> 
> -keith batten
> -99kbatten@kamsc.k12.mi.us
> ----------
> 
> Just do a getkey and compare it to see if [on] was pressed.  If the zero
> flag is set jump to the power off routine.
mike, if you have ever taken a look at a character map for the ti-85's
keyboard, you would have noticed that the [ON] key does not have a
character value. the only ways to check to see if [ON] is pressed from
the ZShell menu or other programs are either wait for ZShell 4.5 to be
released or make an interrupt routine that check to see if on was
pressed.
PCoMP
Visit Maximus Productions home page at: http://www.ntsource.com/~pcomp


References: