What is the operation of in assembly btfss STATUS Z goto end

What is the operation of in assembly:

btfss STATUS, Z

goto end_if

Solution

btfsc STATUS,Z ; skip if Z=0 goto end_if

V Conditional Execution using branches bc (branch if carry), bnc (branch if not carry) bov (branch on overflow), bnov (branch if no overflow) bn (branch if negative), bnn (branch if not negative) bz (branch if zero), bnz (branch if not zero) bra (branch always) A branch functions as a conditional goto based upon the setting of a single flag Using branch instructions instead of btfsc/btfss generally results in fewer instructions, and improves code clarity.

What is the operation of in assembly: btfss STATUS, Z goto end_ifSolutionbtfsc STATUS,Z ; skip if Z=0 goto end_if V Conditional Execution using branches bc (bra

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site