> Hello everybody, > > My assembly being a little rusted, I would like to check with the knowledgeable > people the following portion of code. > > > ... > tst.l d2 > beq.s first_place > second_place: > ... > > Now, if d2 is 0, would executing that code reach first_place or second_place ? > (I have my idea, but I do not want to influence the audience).
Is this a trick question? Given that you haven't actually maked the label first_place it may just depend on where you put that. In general, the "tst x" instruction is the same as "cmp #0,x", so if d2 is zero, the branch will be taken. Joachim
