title: How to count over 255 in pic assembly?
body: <p>I need to count bytes that come from serial port, and do something when they are over 300, but a memory address only can count from 0 to 255, and i cant figuring  how can count over 255</p>
  
  <p>sorry if is a dumb question, but i have no experience in asm development...</p>
  
  <p>PD: i know i can program pics in C but i'm editing some software previously made for someone else  at work  </p>
  
  <p>pic16f77</p>
  
  <pre><code>COUNT
      INCF COUNTRX,1
      MOVLW D'255'  ;need these value over 300 
      MOVWF VALUE         
      MOVF COUNTRX,W
      SUBWF VALUE,W
      BTFSS STATUS,0      
      GOTO ITSVALUE
      GOTO NOTITSVALUE
  </code></pre>