Hex Bit Operands Plugin

 

Use this plugin to decipher what the AND, OR and XOR operators do. For example:

Without the plugin:

1 Set gprm(10) |=(or) 135
2 Set gprm(12) &=(and) 40000
3 Set gprm(14) ^=(xor) 10

These commands are largely indecipherable and the user is left wondering what exactly is going on with the gprms concerned.

With the plugin:

1 Set gprm(10) |=(or) 0x0087 (set bits 0-2, 7)
2 Set gprm(12) &=(and) 0x9C40 (preserve bits 6, 10-12, 15)
3 Set gprm(14) ^=(xor) 0x000A (toggle bits 1, 3)

We can now see that:

·         The first command sets bits 0-2 and 7 of gprm(10) (if they were not already set; the other bits are left untouched);

·         The second command keeps the state of bits 6, 10-12 and 15 of gprm(12) (and zeros the other bits); and

·         The third command toggles the state of bits 1 and 3 of gprm(14) (i.e. if they were 0, they become 1 and vice-versa; the other bits are left untouched).

Note that you can configure the features of this plugin via its menu.