A86: port 1 keyloop


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

A86: port 1 keyloop



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

Follow-Ups: