static byte xdata leds1 _at_ 0x00c0;
#endif
-#define leds(word) \
- do \
- { \
- leds0 = ~LOW(word); \
- leds1 = ~HIGH(word); \
- } \
+#define leds(word) \
+ do \
+ { \
+ uint16 w = word; \
+ leds0 = ~LOW(w); \
+ leds1 = ~HIGH(w); \
+ } \
+ while (0)
+
+#define ledsb(bh, bl) \
+ do \
+ { \
+ leds0 = ~(bl); \
+ leds1 = ~(bh); \
+ } \
while (0)
#endif // _LEDS_H_