View Single Post
Old 25 October 2019, 06:51   #2
deimos
It's coming back!
 
deimos's Avatar
 
Join Date: Jul 2018
Location: comp.sys.amiga
Posts: 762
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 07:35.
deimos is offline  
 
Page generated in 0.04307 seconds with 11 queries