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.
Dear all, I want to access some continus bit,let me can modify the value,such as, for(i = 0 ; i < 10 ; i++) { bit[i] = ?; } but you know,the bit var cann't build as a array in keil c51,but build some boolean var with byte will speed down the MCU and more code,Who can give me a good advice and a way,Thanks in advance.
Paddy, your explanation is not at all clear, but it appears that you want the 8051 to do something which it just cannot. There is no "bit pointer" functionality in the 8051 design. If you want to access an array, then the assembler code has no choice but to use byte operations to access the required bit.