??? 11/01/06 20:14 Read: times |
#127238 - bitwise operations Responding to: ???'s previous message |
Hi Eric,
i'm not to used to work with bitwise operations. Correct me I misunderstood p1 &=0f8h p1 |= (page_num & 0x07h) will do the same is the same as: p1 = p1 & 0f8h p1 = p1 | (page_num & 0x07h) I don't get how these 2 lines work. If the initial pointer is initialized in Zero then after executing the first line it would remain zero. And the following line would set the 3 less significand bits of the poiter, am I right? Regards |
Topic | Author | Date |
4Mb Flash 29C040 | 01/01/70 00:00 | |
project description | 01/01/70 00:00 | |
which brand? | 01/01/70 00:00 | |
manufacturers datasheet link | 01/01/70 00:00 | |
neat chip | 01/01/70 00:00 | |
re posting code | 01/01/70 00:00 | |
newbie | 01/01/70 00:00 | |
a few things | 01/01/70 00:00 | |
bitwise operations | 01/01/70 00:00 | |
where are you?, please add location to profile | 01/01/70 00:00 | |
from Argentina![]() | 01/01/70 00:00 | |
Code | 01/01/70 00:00 | |
trouble description | 01/01/70 00:00 |