Re: A86: port 1 keyloop


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

Re: A86: port 1 keyloop




if i were you i would put a HALT instruction right after main_keyloop

> JBrett wrote:
> 
> WHAT IS WRONG WITH THIS KEYLOOP?!?
> main_keyloop:
>    ld a,%01111110
> ; out (1),a
> ; nop
> ; nop
> ; nop
> ; nop
> ; in a,(1)
> ; bit 3,a
> ; jp z,move_up
> ; bit 2,a
> ; jp z,move_right
> ; bit 1,a
> ; jp z,move_left
> ; bit 0,a
> ; jp z,move_down
>  ld a,%00111111
>  out (1),a
>  nop
>  nop
>  nop
>  nop
>  in a,(1)
>  bit 6,a
>  jp z,game_over
> ; bit 5,a
> ; jp z,block_test
>  jp main_keyloop
> --------------
> Jbrett
> tbarwick@esn.net
> http://ww2.esn.net/~tbarwick

-- 

=====================================
=                                   =
=   Kirk Meyer (mailto:_@ibm.net)   =
= http://www.bigfoot.com/~kirkmeyer =
=  http://simcommunity.home.ml.org  =
=                                   =
=   "Set your affection on things   =
=    above, not on things on the    =
=      earth."  Colossians 3:2      =
=                                   =
=====================================


Follow-Ups: References: