[A83] Re: Getkey loop


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

[A83] Re: Getkey loop




hello,

Well, nc is for the carry flag, you want nz for the zero flag, when register 
a is equal (zero difference) to kY

I think that should work,
   Jimmy Pardey


>X:
>  B_Call _getkey   ;Gets a keypress
>  cp kY    ;If key = [Y=]
>  jp nc,StartMenu   ;Jump to StartMenu
>  jp X    ;Repeat the loop (jump to X)
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




Follow-Ups: