Re: A83: (No Subject)


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

Re: A83: (No Subject)




	ld	hl,something
	ld	bc,3
	cpir
	jp	z,thesamelbl


something:  db	 1,3,65


Later,
Pat

------------------
Original text

From: Olle Hedman <oh@hem.passagen.se>, on 11/16/98 8:39 PM:

Isn't that simple enough?

//Olle

yean yean wrote:
> 
> Hi guys !  :)
> 
> I have a very simple question :
> -Is there a way to do in ASM the same thing as
> "If A=31 or A=48 or A=2 ... Goto X" in basic ??
> 
> to do :
>         ld      a,(Something)
>         cp      1
>         jp      z,THESAMElbl    ;ALWAYS THE
>         cp      3
>         jp      z,THESAMElbl    ;SAME
>         cp      65
>         jp      z,THESAMElbl    ;LABEL
>              ...
> 
> but how to do it simplier?????
> 
> THX  ;)
> 
> See ya,
> yhean
> 
> Get your FREE E-mail at http://mailcity.lycos.com
> Get your PERSONALIZED START PAGE at http://personal.lycos.com


Follow-Ups: References: