Re: A86: Problem reading ports


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

Re: A86: Problem reading ports




I remind you that this list is not to be used for discussing assembly,
you should post this elsewhere.

Also you need to put an "in a,(1)" right after the line with the out.

Sam Patterson 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


References: