Conditional Execution using Bit Test (btfsc/ btfsc).
1.) Convert the provided code to the C language. Also explain the codes function.
INCLUDE "P18F242.INC"
CBLOCK 0x000
i, j
ENDC
org 0
goto main
org 0x200 //start at address 0x200
main
…
movf i,f
btfsc STATUS,Z
goto end_if
movf i,w
addwf j,f
end_if
… rest of code …
Dont copy from other post. Will get downvote if answer is copied.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here