| ??? 02/07/06 22:11 Read: times |
#109460 - If only Responding to: ???'s previous message |
I did come up with a very ellegant solution to your problem,only trouble is C doesnt let you concatenate two nibbles to form a byte,this is the trouble with working with C when you have been working with vhdl which lets you get away with tricks like that. |
| Topic | Author | Date |
| Right Filling n x Rightmost Bits with 1' | 01/01/70 00:00 | |
| wrong approach | 01/01/70 00:00 | |
| Wrong Approach ? | 01/01/70 00:00 | |
| why not just |= bits_to_be_added | 01/01/70 00:00 | |
| |= bits_to_be_added | 01/01/70 00:00 | |
| ah | 01/01/70 00:00 | |
| bang on | 01/01/70 00:00 | |
| Try an Array | 01/01/70 00:00 | |
| |= 2^RightMostBits -1; // sure? | 01/01/70 00:00 | |
| You are correct about ^ != pow() | 01/01/70 00:00 | |
| If only | 01/01/70 00:00 | |
| About 25 bytes with SDCC | 01/01/70 00:00 | |
| Thankyou | 01/01/70 00:00 | |
| Why not use a table? | 01/01/70 00:00 | |
| codesize | 01/01/70 00:00 | |
Yes, But.. | 01/01/70 00:00 |



