tom12sg
Member level 2
Bit assign in xdata
Hi,
Need advice on the following:
I'm using keil for 8051.
Normally I will use a bit for flag test
e.g bit flag_error=0;
How can i use xdata instead? How to assign a name to each individual bit in the xdata?
Please give simple example on how to set/clear/test a particular bit
Is there any easy way?
Regards,
Hi,
Need advice on the following:
I'm using keil for 8051.
Normally I will use a bit for flag test
e.g bit flag_error=0;
How can i use xdata instead? How to assign a name to each individual bit in the xdata?
Please give simple example on how to set/clear/test a particular bit
Is there any easy way?
Regards,