Possibility to select bitmask enum in bit number operand

It would be very helpful, if it’s somehow possible to define single enum that could be selected as bit mask and also bit number operand.

For example, the same bit is often accessed in both ways:
SET1 data.4 -> SET1 data.ENUM_4
AND data, #10h -> AND data, ENUM_4

Example is RL78/78K0 assembly, but it doesn’t really matter.

Currenly, to achieve it, two distinct enums must be created and kept in sync during the reverse engineering process.

At least some ideas how to solve it? Maintaining two enums is unpractical and make it difficult to follow where flag is referenced from.

Hi there, and thanks for bringing this up!

I’m afraid we don’t have a ready-to-use solution at the moment. A plugin that keeps the two enums in sync might be a direction worth exploring.

We’ll keep an eye on this thread for community feedback, and we’ll post an update here if we find a way to improve it.