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.