how to set or clear individual bits in a veriable??
Posted: Wed Feb 03, 2021 10:28 am
in the C compiler get this code working but how to do it in flowcode, any idae pls..
unsigned int32 code;
for(i = 0; i < 32; i++)
if( count > 20)
bit_set(code, (31 - i));
else
bit_clear(code, (31 - i));
unsigned int32 code;
for(i = 0; i < 32; i++)
if( count > 20)
bit_set(code, (31 - i));
else
bit_clear(code, (31 - i));