A83: Re: Fades
[Prev][Next][Index][Thread]
A83: Re: Fades
you need to push and pop your variables
btw, you dont need to add a "d" after a number. ie 44d = just 44
-Harper Maddox
jerky@ebicom.net
IRC nick: Geori
ICQ: 1214597
-----Original Message-----
From: Mark Allen <erlkonig@mindless.com>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Monday, June 22, 1998 12:08 AM
Subject: A83: Fades
>
>I was trying to sort of fade from dark to light by using a loop to
>lighten the contrast, but my calc crashed and I had to remove the
>batteries. Anyone know what I'm doing wrong?
>
> ld a,60d
>
>Fade_in:
>
> ld (curcontrast),a ;start to change contrast
> ld a,(curcontrast)
push af
> or 0C0h
> call _LCD_BUSY
> out (LCDINSTPORT),a ;end contrast change
pop af
> dec a
> cp 44d
> jr nz,Fade_in ;if the contrast isn't at 44 (about mid-range),
>then go back to Fade_in
>
>
>I've only been doing this for a few days now, so disregard any sloppy
>code...
>
>Thanks,
>
>Mark Allen
>