A86: Key checking...


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

A86: Key checking...




I'm fairly new to assembly for z80.  I know 68k good though.  I was
wondering how I would make the program check keys like this:

Loop:
	ld	a,%01111110
        out	(1),a
        nop
        nop
        in	a,(1)
        bit	3,a
	jr	z,Up
	bit	2,a
	jr	z,Right
	bit	1,a
	jr	z,Left
	bit	0,a
	jr	z,Exit
	jr	nz,Loop      

I was wondering, how would I check for the exit key using this method? 
I appreciate any help you can give me.  

Eric Greening


Follow-Ups: References: