I'm tryin to mask an address in c++. This is what i've tried.
INT32 * myaddr = (INT32*)addr; // This converted 'addr' to the hexadecimal format -- 'myaddr'
Now how do I and
it 0xff00 ?
UINT32 sec_addr = (myaddr & 0xff);
When I try to do the following.. This is the error I get:
error: invalid operands of types ‘LEVEL_BASE::INT32*’ and ‘int’ to binary ‘operator&’
What is the mistake i'm doing?