/*
* Copyright (c) 1992-2004 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
V4.02:1476 */
=====================================================
=====================================================
typedef union {
unsigned int WORD;
struct {
unsigned int BIT0 :1;
unsigned int BIT1 :1;
unsigned int BIT2 :1;
unsigned int BIT3 :1;
unsigned int BIT4 :1;
unsigned int BIT5 :1;
unsigned int BIT6 :1;
... ...
unsigned int BIT32 :1;
} BITS;
} BYTEINIT;
这样行不行?8位的单片机是可以的,32我还没试过