Re: A86: Problem reading ports


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

Re: A86: Problem reading ports




you forgot to read in from the ports!
new code!

> 	ld a,$BF
> 	out (1),a
 nop
 nop
 in a,(1)
;that code reads in from the port
> 	bit 5,a
> 	jr z,Second
> 	bit 6,a
> 	jp z,Exit   ;heres where it breaks
and personally i like to send the mask out in binary
so i can easly see what row im checking for but you
may like hex better

--- Sam Patterson <neophile_17@hotmail.com> wrote:
> 
> This is a read key loop except the loop is broken as
> if exit was pressed 
> when it wasn't.  I think this is because the mask is
>          %10111111 and 
> bit six is already missing but I don't know how to
> fix it if it is.
> 
> 	ld a,$BF
> 	out (1),a
> 	bit 5,a
> 	jr z,Second
> 	bit 6,a
> 	jp z,Exit   ;heres where it breaks
> 
> Any help would be appreciated. Thanx.
>                                         ~neophile_17
>
______________________________________________________
> Get Your Private, Free Email at
> http://www.hotmail.com
> 
> 
> 
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com