Microchip PIC programming question

D

DAFLY98

Guest
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
 
dafly98@aol.com (DAFLY98) wrote:
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

--
William Smith
ComputerSmiths Consulting, Inc. www.compusmiths.com
 
http://www.piclist.com/techref/microchip/compcon.htm

In general piclist is great help if you are looking for PIC code.

"DAFLY98" <dafly98@aol.com> wrote in message
news:20031104220923.20468.00000139@mb-m23.aol.com...
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
 

Welcome to EDABoard.com

Sponsor

Back
Top