I am a super newbie to C, but have 3 years experience with VB. I am converting a C program to VB and have run into something I am not familiar with. Here is the code. My question is below the code:
After the call to the 'inp' routine there is the '&' symbol and a HEX value. They come out to be 127 and 255.Code:status1 = inp(UUT_baseaddr+1) & 0x7F; status2 = inp(UUT_baseaddr) & 0xFF;
What exactly is that doing?
Is is concactenating 127 and 255 to the result from 'inp'?
When I use this command in VB:
I get the response from inp as 255, but then VB concactenates the 127 to the end of the response and I end up withCode:status1 = inp(UUT_baseaddr+1) & 127
"255127"
Which I don't think it is correct.
Any help or tips is greatly appreciated. I am a C newbie so your comments are greatly appreciated.