??? 02/15/09 21:38 Read: times |
#162442 - wrote this code still not working Responding to: ???'s previous message |
This is my code ,please point where i'm wrong
org 00h loop: mov a,p1 mov b,p1 anl a,#00000010b anl b,#00000001b rr a mov r0,b xrl a,r0 jnz bits bits: setb p2.0 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 |