??? 02/15/09 22:56 Read: times |
#162448 - XOR a bit, quite literally Responding to: ???'s previous message |
I was taking your requirement quite literally:
loop: mov c,p1.1 jnb p1.0, xor_skip cpl c xor_skip: mov p2.0,c sjmp loop |
Topic | Author | Date |
How to XOR a single bit (N00B) | 01/01/70 00:00 | |
Instruction set tells what is available | 01/01/70 00:00 | |
Code | 01/01/70 00:00 | |
Think about it a little bit! | 01/01/70 00:00 | |
CPL bit if XOR with 1; otherwise, don't | 01/01/70 00:00 | |
wrote this code still not working | 01/01/70 00:00 | |
Jumping where? And not jumping where? | 01/01/70 00:00 | |
this might be it | 01/01/70 00:00 | |
use a compiler first | 01/01/70 00:00 | |
XOR a bit, quite literally | 01/01/70 00:00 | |
... and now, we've done his homework for him ... | 01/01/70 00:00 | |
schematic | 01/01/70 00:00 |