As of PgcEdit 9.1 release I may present you my little plugin for this excellent program (as already
announced by r0lZ).
Hex bit operands requires PgcEdit version 9.1 or later to function. If you use it with any previous version the plugin will be disabled - in this case upgrading PgcEdit to a supported version will not enable plugin by default, you'll have to do it manually.
The plugin allows to display operands of SET bit operations (
|=(or),
&=(and),
^=(xor)) and bit comparison (
&) in hexadecimal notation.
The second function of the plugin is to display descriptions of bit operations.
A few examples of the plugin-enabled output:
Code:
Set gprm(0) &=(and) 0x0000 (clear all bits)
Set gprm(0) &=(and) 0xFCE2 (preserve bits 1, 5-7, 10-15)
Set gprm(0) &=(and) 0xFFEF (clear bit 4)
Set gprm(0) |=(or) 0xFFEF (set bits 0-3, 5-15)
Set gprm(0) |=(or) 0x0000
Set gprm(0) ^=(xor) 0xFFEF (toggle bits 0-3, 5-15)
Set gprm(0) ^=(xor) 0xFFFF (toggle all bits)
if ( gprm(0) & 0x0314 ) then { Set gprm(0) ^=(xor) gprm(0)}
These description can be turned on and off independent of hexadecimal format (i.e. you may display operands in decimal format while displaying the descriptions and vice versa).
As you can see, the description is not added to bit comparison, because the output would be too cluttered.
To download the plugin go to the "Plugins" section of r0lZ's homepage (
http://download.videohelp.com/r0lZ/pgcedit/#plugins)
Please post any feedback in this thread.
Thank you for your attention.
edit:
As in case of any changes to the plugin I will not force r0lZ to update his homepage, I created an alternative link to the latest version of the plugin:
http://members.elysium.pl/morris/pro...plugin_v08.rar