Quantcast
Channel: PIC24 Topics
Viewing all articles
Browse latest Browse all 3494

PIC24FJ64GA002 negative status flag inverted in byte mode (SPKSmithy)

$
0
0
Hi, I'm trying to compare 2 numbers to see if one of them is greater than the other but when I use CP.B the N flag isn't acting how I expected

MOV #200, W0

MOV W0, fileReg
MOV #5, W0

CP fileReg ;fileReg - WREG = 195..


Viewing all articles
Browse latest Browse all 3494

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>