piclist 2001\04\18\223809a >
Thread: Maths on a 16F876
www.piclist.com/techref/microchip/math/index.htm?key=math
flavicon
face BY : David VanHorn email (remove spam text)



>
>Except, what happens if B == 0?
>
>decf B,W        ; W = 0xFF
>movwf        PRODUCT_HI     ; Product HI = 255
>xorlw    0xFF    ;W = 0
>movwf        PRODUCT_LO    ; Product lo = 0
>
>Not such a good thing.
>
>0 * 255 is not == 65280 (0xFF00)

Troublemaker :)
--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<4.3.2.7.2.20010418212513.00c2ff00@mail.cedar.net>

In reply to: <002101c0c878$a8cfdf40$11e9c540@CDS>
See also: www.piclist.com/techref/microchip/math/index.htm?key=math
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Maths on a 16F876

month overview.

new search...