# Possibility to select bitmask enum in bit number operand

**URL:** <https://community.hex-rays.com/t/possibility-to-select-bitmask-enum-in-bit-number-operand/822>\
**Category:** IDA General\
**Tags:** common-issue\
**Created:** [October 7, 2026, 7:59am UTC](https://community.hex-rays.com/t/possibility-to-select-bitmask-enum-in-bit-number-operand/822 "2026-10-07T07:59:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gashtaan](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gashtaan](https://community.hex-rays.com/u/gashtaan)\
**Post date:** [October 7, 2026, 7:59am UTC](https://community.hex-rays.com/t/possibility-to-select-bitmask-enum-in-bit-number-operand/822/1 "2026-10-07T07:59:29Z")

</div>

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.
