Maker Pro
Maker Pro

Microchip PIC programming question

D

DAFLY98

Hi, I started programming PICS not to long ago 16F84A to be exact. I knew there
were no value compares within the instruction set but now I am in need of some
compare code. I did search the net and ran across a couple using the status
reg. carry and zero bits, but I have found some problems using it. I am doing
16bit compare but I can modify 8bit compare code to work for my needs. any help
will be appreciated
 
W

William P.N. Smith

Hi, I started programming PICS not to long ago 16F84A to be exact. I knew there
were no value compares within the instruction set but now I am in need of some
compare code.

"As a result of a subtract operation, the C bit is cleared to zero if
a borrow occurs, and is set otherwise."

Design With PIC Microcontrollers
John B. Peatman
Prentice Hall
ISBN 0-13-759259-0
 
Top