??? 02/15/09 22:34 Read: times |
#162444 - Jumping where? And not jumping where? Responding to: ???'s previous message |
An interesting thing with your code.
You have a jnz comparison. But where did you ask it to jump? And where will it get if it doesn't jump? You want to either set or clear your p2.0 depending on the result of the xor - hence your program must do something meaningful bot if the conditional jump is taken or not. |
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 |