I have 1 byte at the address FFF0 and i have to read the byte bits-wise i.e i have to store the first 4 bits in a variable and the other 4 bits in another variable from that fff0 address byte .eg :fff0 : int v1=first 4 bits ,v2 = other 4 bits ;fff0 =00100011 ;v1 =0011(lower bits),v2=0010(upper bits).
vaishnu
3
Light Poster
Recommended Answers
Jump to PostI think you may mean FFF0 is hex. If so that is 2 bytes (32-bit). Other than that I can't really make sense of your question. The definition of first and last depends on
Jump to PostI'm not sure I understand you -- can you post your code?
All 7 Replies
sknake
1,622
Senior Poster
Featured Poster
vaishnu
3
Light Poster
sknake
1,622
Senior Poster
Featured Poster
vaishnu
3
Light Poster
Momerath
1,327
Nearly a Senior Poster
Featured Poster
vaishnu
3
Light Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.