Log in

View Full Version : Hex bit operands plugin v0.8 for PgcEdit (2009.02.05)


M_Knox
3rd January 2009, 16:29
As of PgcEdit 9.1 release I may present you my little plugin for this excellent program (as already announced by r0lZ (http://forum.doom9.org/showthread.php?p=1231536#post1231536)).

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:

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/programs/pgcedit/plugins/hexbitoperands_plugin_v08.rar

Wombler
3rd January 2009, 16:34
Excellent job M_Knox!

Thanks for that.


Wombler

blutach
4th January 2009, 01:44
Many many thanks for this.

Regards

M_Knox
5th February 2009, 18:54
I slightly updated the plugin, so it now allows display descriptions in comparison operations (that one was for you, blutach! :) ). I've also added an option to enable hexadecimal output for all Set operations (like simple assignment, addition, multiplication, etc.) - but these operations do not have descriptions.

For the download link please see the first post in this thread.

Thank you for your attention.

blutach
6th February 2009, 00:05
:) Thanks very much!

Regards