Re: A86: Re: Key Presses


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

Re: A86: Re: Key Presses




actually, yes you do need ld ($C008),a BEFORE out (2),a.... sorry, I left
that out :0)
----- Original Message -----
From: <MikeT843@aol.com>
To: <assembly-86@lists.ticalc.org>
Sent: Saturday, December 04, 1999 7:32 PM
Subject: Re: A86: Re: Key Presses



if you this the following code, wouldnt you also have to ld ($c008),a after
out(2),a?

up:
 ld a,($c008)   ;load contrast into a
 cp 31            ;see if it's top
 jr z,getkey     ;if it is go back to the getkey loop
 inc a             ;if it isn't, increment it
 jr changecont ;get another key
down:
 ld a,($c008)  ;"
 cp 1             ;see if it is-
 jr c,getkey    ;less than one, and go to getkey loop if so
 dec a           ;else decrement it
changecont:
 out (2),a       ;actually change the contrast







References: