"if ( status & 0x100 )" .. what is the meaning of this line ..
and in the following line what does 0x007F means...
"out = bioscom ( 2, 0, PORT ) & 0x007F"
(i know the above line is to check data for error but what exactly 0x007F means.."
Thanks
"if ( status & 0x100 )" .. what is the meaning of this line ..
and in the following line what does 0x007F means...
"out = bioscom ( 2, 0, PORT ) & 0x007F"
(i know the above line is to check data for error but what exactly 0x007F means.."
Thanks
Life is Like a Game.. You Just Dont Get 3 lives
>"if ( status & 0x100 )" .. what is the meaning of this line ..
If bit 8 (counting from 0) is set in 'status'...
>and in the following line what does 0x007F means...
>"out = bioscom ( 2, 0, PORT ) & 0x007F"
Use only the lower 7 bits of the value returned by the call to 'bioscom' (clear other bits).
See also this FAQ.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
i did'nt get it
"If bit 8 (counting from 0) is set in 'status'..."
can you plz explain it briefly ?
Life is Like a Game.. You Just Dont Get 3 lives
Code:0x100 -> 0000000100000000 ^ ^ bit8 bit0
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*