'Code snippet / comparision vs several constants'
I was squeezing some folks assembler code today and ran across
part of it when one needs to compare variable against several
constants one by one and if case is equivalency found jump to
What I originally had :
xorlw A ;first compare vs A constant
xorlw B^A ;then compare vs B constant
xorlw C^B ;then compare vs C constant
Interesting squeeze was found :) so I decided to share
in case if somebody else might find idea helpful.
More... (looser matching)
- Last day of these posts
- In 2005
, 2006 only
- New search...