View Single Post
Old 25 October 2019, 07:51   #2
deimos
Registered User

 
Join Date: Jul 2018
Location: France
Posts: 536
You conditionally branch, using the opposite condition, over a branch, so that the bar only gets e ecuted if your condition was true. So to call a subroutine only if d0 is equal to zero:

Code:
        tst.w   d0
        bne     1$
        bar     subroutine
1$      more code...
Use local labels for stuff like this, otherwise you'll spend more time thinking of names than coding.

Last edited by deimos; 25 October 2019 at 08:35.
deimos is offline  
 
Page generated in 0.05539 seconds with 11 queries