Searching \ for '[PIC]: How to compare two 8 bit values fast' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'How to compare two 8 bit values fast'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: How to compare two 8 bit values fast'
2001\04\24@140237 by Graham North

picon face
Hi,

Could someone tell me the fastest way to compare two 8bit values.

Thanks

Graham
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\04\24@140701 by Marco Trapanese

flavicon
face
> Hi,
>
> Could someone tell me the fastest way to compare two 8bit values.
>
> Thanks
>
> Graham
>

if you write in C:
char a, b;
a = ....
b = ....
if (a == b)
{
}
else
{
}

I think it's the fastest way to compare two 8bit (1 byte) data value. If you
write in assembler... it's another thing......
:-)

bye,
Marco Trapanese

---
e-mail: spam_OUTmarcotrapaneseTakeThisOuTspamtin.it
web: http://members.xoom.it/m_trapanese

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\04\24@141511 by Quentin

flavicon
face
MOVF    REG1,W
SUBWF   REG2,W
BTFSS   STATUS,Z
GOTO    =>;NOT SAME
GOTO    =>;SAME

Quentin

Graham North wrote:
>
> Hi,
>
> Could someone tell me the fastest way to compare two 8bit values.
>

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\04\24@143745 by Thomas C. Sefranek

face picon face
Graham North wrote:

> Hi,
>
> Could someone tell me the fastest way to compare two 8bit values.

CPFSEQ

{Quote hidden}

--
 *
 |  __O    Thomas C. Sefranek  .....tcsKILLspamspam@spam@cmcorp.com
 |_-\<,_   Amateur Radio Operator: WA1RHP
 (*)/ (*)  Bicycle mobile on 145.41, 448.625 MHz

ARRL Instructor, Technical Specialist, VE Contact.
hamradio.cmcorp.com/inventory/Inventory.html
http://www.harvardrepeater.org

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\04\24@164514 by Fernando Antoniasse

flavicon
face
Or
movf REG1,W
xorwf REG2,W
bz SAME
;not SAME

Regards

Luis F.

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...