🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #290

Re: VB: In macros: convert a decimal value to a hex field ?

#290
From: Robert A. Rosenberg
Date: Sun, 04 Sep 2005 04:54
18 lines
2450 bytes
At 15:41 +0200 on 08/31/2005, thomas.berg@FSB.SE wrote about VB: In
macros: convert a decimal value to a hex field ?:

>To be more precise:  I need the hex value in the assembler/macro
>processing phase as a want to create a field declaration like "XXX
>DC   X'001C'.
>
>Thomas

In this case, why not just go

XXX    DC   HL2(28)   The L2 is to avoid boundary alignment like X does.

since it will do the conversion automatically for you? Now if you wanted to get

XXX    DC   C'001C'

I can see a reason to go though the contortions of converting to hex.
Technical Details
Message-ID: <p06230903bf402d499513@[192.168.1.11]>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!sn-xit-04!sn-xit-11!sn-xit-05!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!rarpsl.com!asm
References: <600104073D8B664FA268794111E4FE893CCA76@FSPAS01EV001.fspa.myntet.se>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,9a7b4bdb556db798
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!sn-xit-04!sn-xit-11!sn-xit-05!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!rarpsl.com!asm
From: "Robert A. Rosenberg" <asm@rarpsl.com>
Newsgroups: bit.listserv.asm370
Subject: Re: VB: In macros: convert a decimal value to a hex field ?
Date: Sun, 4 Sep 2005 00:54:19 -0400
Organization: SAS Inc.
Lines: 18
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <p06230903bf402d499513@[192.168.1.11]>
References: <600104073D8B664FA268794111E4FE893CCA76@FSPAS01EV001.fspa.myntet.se>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1125813403 32006 10.19.150.41 (4 Sep 2005 05:56:43 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Sun, 4 Sep 2005 05:56:43 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
X-Mailer: Eudora for Mac OS X 6.2.3 (MacOS 10.3)
X-AntiAbuse: This header was added to track abuse,
             please include it with any abuse report
X-AntiAbuse: Primary Hostname - server70.totalchoicehosting.com
X-AntiAbuse: Original Domain - listserv.uga.edu
X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
X-AntiAbuse: Sender Address Domain - rarpsl.com
Approved-By: "Robert A. Rosenberg" <asm@RARPSL.COM>
In-Reply-To: <600104073D8B664FA268794111E4FE893CCA76
              @FSPAS01EV001.fspa.myntet.se>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 04 Sep 2005 05:56:41.0511 (UTC)
                       FILETIME=[6C0C6B70:01C5B115]
Originator: daemon@mozart.unx.sas.com