Re: A83: (No Subject)


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

Re: A83: (No Subject)




Thats pretty much the easiest way to do it...

Grant Stockly 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?????
> 
> If when a is any value, it will alaways go to THESAMElbl, then just jp to
> THESAMElbl without all the unnecesary code...


References: