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

2x50 watt stereo amplifier
Audio MP3 Car Amplifier Schematic Circuits 150W
H bridge using TPS2836 and CSD16404
fm radio receivers
MkI Video digitiser circuit description
0-90 phase shifter circuit diagram
Low-noise switching power supply schematic circuit diagram



Top