Here is a fast way to save specific bits from one register into another.
mov W, Source
xor W, Destination
and W, #%xxxxxxxx ;Replace "x" with "1" to Copy the Bit
xor Destination, W
| file: /Techref/scenix/lib/math/bit/cabrr_sx.htm, 0KB, , updated: 2004/6/10 14:40, local time: 2012/5/25 14:54,
38.107.179.231:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/scenix/lib/math/bit/cabrr_sx.htm"> SX Microcontroller Bit Math Method Copy aligned bits from one register to another</A> |
| Did you find what you needed? |
|
Enter the PICList design contest to win a free PCB from olimex.com! |
|
Peter Todd has released source and sample projects for his artwork, including his 3d wireframe cube renderer for the PIC 18f6520 This includes examples of hardware developed with free software tools such as gEDA/gschem/PCB, SDCC, gputils and picp all on Linux. http://petertodd.ca/art/source-code/ |
.