We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have one question about bit variable initialization.
Before I used below simple way to initialize bit vars:
Ex. bit bvar_0=0;bit bvar_1=1; bit bvar_2=1;bit bvar_3=1; bit bvar_4=1;bit bvar_5=1; bit bvar_6=0;bit bvar_7=0;
And then ?C_INITSEG SEGMENT generated and gets bigger in size...
But when using (bdata+sbit) to declare above bit vars:
UINT8 bdata var2A _at_ 0x2A; sbit bvar0= var2A^0; sbit bvar1= var2A^1; sbit bvar2= var2A^2; sbit bvar3= var2A^3; sbit bvar4= var2A^4; sbit bvar5= var2A^5; sbit bvar6= var2A^6; sbit bvar7= var2A^7;
I found ?C_INITSEG's size is changed(smaller) and I guess it was due to "not initialization bit variables"
Thus my question is: How to initialize these bit variables if using (bdata+sbit) ?