Comparison macro for PIC processors


Posted on Oct 4, 2012

If you ever get tired of trying to remember the subtleties of the `carry` status bit every time you want to use the subtract instruction to perform a comparison, the macro in Listing 1 can help. The macro contains all of the nuances, once and forever. The macro reads like a sentence: branch to target if ram-register is [comparison condition] a literal value. The comparison conditions available are `equal-to,` `not-equal-to,` `below,` and `above-or-equal.`






Leave Comment

characters left:

New Circuits

.

 


Popular Circuits

Read-head-preamplifier
Balance Indicator
oscillator circuit
Latest Intruder Alarm Super Sensitive circuit and explantion
Antenna Analyzer Progress
simple field strength meter
RC Phase Shift Oscillator Using Transistor (BJT): Circuit & Working
UHF Antenna Amplifier Circuit



Top