Y
yancheng.cheok
hello all,
in my memory content says,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 ... 0xff
i wish to shift it n bits. please note that, not n bye, but n bit, and
n can be any value 0, 1, 2......
let's say n = 8,
the memory content i wish to get is
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 ... 0xff, 0x0
i was wondering c got any facilities to do so. i had once try int
pointer, but the result i will get is
0x1, 0x2, 0x3, 0x0, 0x5, 0x6, 0x7, 0x0 ....
any suggestion? or do i need to use assembly?
thank you.
yccheok
in my memory content says,
0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 ... 0xff
i wish to shift it n bits. please note that, not n bye, but n bit, and
n can be any value 0, 1, 2......
let's say n = 8,
the memory content i wish to get is
0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 ... 0xff, 0x0
i was wondering c got any facilities to do so. i had once try int
pointer, but the result i will get is
0x1, 0x2, 0x3, 0x0, 0x5, 0x6, 0x7, 0x0 ....
any suggestion? or do i need to use assembly?
thank you.
yccheok