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

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] [EIT]: [PIC] tiny challenge ;)'
2000\08\10@221621 by Scott Dattalo

face
flavicon
face
On Thu, 10 Aug 2000, Bob Ammerman wrote:

> How about this:
>
>    00ab00cd
> +00100010
>  ---------------
>   0aAb0cCd
> &01010101
>  ----------------
>   0a0b0c0d
> +01010101
> ----------------
>  aAbBcCdD
>
>
> so, in code:
>
>     ADDLW    B'00100010'
>     ANDLW    B'01010101'
>     ADDLW    B'01010101'

Excellent! Now I know I've been doing too much C/C++
(Also, now I know why Dmitry posted the challenge - the solution is so elegant
who cares what problem it solves? :)

Scott

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]: PIC only [EE]: engineering [OT]: off topic [AD]: advertisements

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