Trying to figure out an easy way to update a single bit within a group of 24 bits (3 bytes) using a lookup table that returns 8 bits. The first 5 bits from the table will indicate the bit to be updated (1of24) and the 6th bit will indicate a set or reset for that particular bit.
Thought about using a counter and 3 other registers to shift the bit through the 3 registers so the single bit appears in the correct place, and then do an inclusive or to mask the bit into the existing data. but it seems complicated.
Have any other ideas?