[A83] Re: APD in getk loop
[Prev][Next][Index][Thread]
[A83] Re: APD in getk loop
> Van: TypeR unknown <typerfuture@hotmail.com>
>
> Can somebody tell me how I can use the Automatic Power Down in a Getk
loop?
>
> This loop currently looks like this;
>
> loop:
> call _getk
> or a
> jr z,label
If you want to save plotSScreen to the APD-buffer you can use _SaveDisp (or
_SaveOscreen) at $4859, and _RestoreDisp at $4BA4 to put it back again.
To switch off the calc:
ld a,2 ;
out ($10),a ; display off
ld a,1 ;
out (3),a ; enable only [ON]-interrupt and turn
; LCD-driver into standby mode
halt ; wait 'til [ON] keypress
ld a,%1011 ;
out (3),a ; enable [ON] interrupt and periodic
; interrupt. Turn on LCD driver
ld a,3 ;
out ($10),a ; display on
You should know that when you switch off the LCD-driver the screen will be
cleared. The above *routine* doesn't affect plotSScreen so just calling
FastCopy will help.
Henk Poley <><
Follow-Ups: