Topic: Bitwise input (1 of 5), Read 18 times
Conf: VEDIT Macro Language Support
From: John H
Date: Saturday, May 08, 2004 07:41 PM

Hi,

is it possible to convert Reg_Type(10,8192) output back to hex or
dec?

--
John
VEDIT SN: 95651
VEDIT (DOS) Ver. 6.12.1 05/04/04
VEDIT (32-Bit) Ver. 6.12.1 05/04/04
VEDIT Pro (64-Bit) Beta Test Ver. 6.12.1 05/04/04
Windows 2000 (5.0.2195 Service Pack 4)

 


Topic: Re: Bitwise input (2 of 5), Read 19 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Sunday, May 09, 2004 05:46 AM

On Sat, 08 May 2004 19:41:00 -0400, John H wrote:

>is it possible to convert Reg_Type(10,8192) output back
>to hex or dec?

The easiest way is:
Reg_Ins(10)
Call_File(100, "BIN-HEX.VDM")

;-)

Seriously: What is your intention?


With some lines of macro code ALL is possible!
(If the feature isn't already implemented in VEDIT...)

I made a simple macro to convert such a "binary" output to hex,
decimal or character:

http://ziemski.privat.t-online.de/vedit/macros/abin2hex.vdm


Example:
-- From:
X X X . XX X X. XX XXX. X XXXXX. X X X . XXXX X. XXX .
-- To:
52 65 67 5F 54 79 70
-- or:
82 101 103 95 84 121 112
-- or:
Reg_Typ



Christian

 


Topic: Bitwise input (3 of 5), Read 21 times
Conf: VEDIT Macro Language Support
From: John H
Date: Sunday, May 09, 2004 06:56 AM

On Sun, 9 May 2004 05:46:32 -0400 GMT, Christian Ziemski wrote:

>>is it possible to convert Reg_Type(10,8192) output back
>>to hex or dec?

> The easiest way is:
> Reg_Ins(10)
> Call_File(100, "BIN-HEX.VDM")

> ;-)

> Seriously: What is your intention?

I just have too much time on my hands. I noticed that most of the
'masks' available for Reg_Type() have corresponding display mode,
translate and conversion toggles/options. Just didn't find a way to
quickly transpose bitwise back to the source form. I'd since posting
that written a macro to do it for the heck of it.

What would really be kind of cool is if it was possible to create
custom 'masks' for Reg_Type().

--
John

 


Topic: Bitwise input (4 of 5), Read 21 times
Conf: VEDIT Macro Language Support
From: Christian Ziemski
Date: Sunday, May 09, 2004 07:47 AM

On 5/9/2004 6:56:24 AM, John H wrote:

>What would really be kind of cool is if
>it was possible to create
>custom 'masks' for Reg_Type().

Then we should wait what Ted has to say ...

Christian

 


Topic: Re: Bitwise input (5 of 5), Read 21 times
Conf: VEDIT Macro Language Support
From: Ted Green
Date: Monday, May 10, 2004 10:36 AM

At 07:47 AM 5/9/2004, you wrote:
>>What would really be kind of cool is if
>>it was possible to create
>>custom 'masks' for Reg_Type().
>
>Then we should wait what Ted has to say ...

I don't see much need for more text register operations, as it is easy to copy the register into a buffer where all operations are possible.

Once we implement named-string variables, we will re-evaluate all this. I would like to add more Perl functionality to the VEDIT macro language.

Ted.