View Single Post
Old 3rd January 2009, 16:29   #1  |  Link
M_Knox
Custom user
 
M_Knox's Avatar
 
Join Date: Jul 2007
Location: Poland
Posts: 70
Hex bit operands plugin v0.8 for PgcEdit (2009.02.05)

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
__________________
M.O.R.R.I.S.: Mechanical Obedient Replicant Responsible for Infiltration and Sabotage
morris#rarlab*com

Last edited by M_Knox; 5th February 2009 at 18:44.
M_Knox is offline   Reply With Quote