I'm looking for a fast way to set one byte of PORTD on a PIC32MX ...=20 RB8:15, without affecting the other nibble/bits. I'm using UNoptimized=20 XC32. Yes, I can save the state of the other bits as they change around the=20 code and reassemble a full port word when I need to change the upper=20 nibble, but that seems like it would waste a lot of cycles. Since the instruction set allows for OR'ing and AND'ing port bits=20 (writing to specific addresses for the port it seems), I'm wondering if=20 ANDing with a mask and then ORing in C translate directly to the=20 respective instructions? Or is there a better/more clever way to do this? Cheers, -Neil. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .