Article View: bit.listserv.asm370
Article #281Re: new type of CA for ascii strings
From: glen herrmannsfeldt
Date: Fri, 22 Sep 2006 20:13
Date: Fri, 22 Sep 2006 20:13
31 lines
2952 bytes
2952 bytes
"McKown, John" <John.Mckown@healthmarkets.com> wrote: > Being a contrary cuss, if I want to be sure that I have x'..', then why > shouldn't I just code x'..' and put a comment on the code like: > MVI CHARVAR,X'41' LOWER CASE ASCII CHARACTER - A The PL/I (F) compiler has comments in some modules like: * THE OPERATION OF THIS MODULE DEPENDS ON AN INTERNAL * REPRESENTATION OF THE EXTERNAL CHARACTER SET WHICH IS * EQUIVALENT TO THE ONE USED AT ASSEMBLY TIME. THE CODING HAS * BEEN ARRANGED SO THAT REDEFINITION OF 'CHARACTER' CONSTANTS, * BY RE-ASSEMBLY, WILL RESULT IN A CORRECT MODULE FOR THE NEW * DEFINITIONS. Using the appropriate C constants allows, as the comment indicates, the possibility of reassembly with a different object time character set. (I don't know how many other IBM products have comments like this.) I believe the Tachyon assembler allows a choice of both source and object character set at assembly time. It will, at least, read ASCII source and generate code with EBCDIC constants. If you use X constants and want to change the character set, someone has to go through and find all of them to change. You could use EQU to put all the constants in one place, so that they would only need to be changed in one place, though. -- glen
Technical Details
Message-ID:
<451443FC.mailxN531152GK@seniti.ugcs.caltech.edu>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xt-sjc-02!sn-xt-sjc-06!sn-xt-sjc-12!supernews.com!foggy!vm.sas.com!ugcs.caltech.edu!gahReferences:
<80ED1590A931EE45BAE1DA52D25AE0F20549D946@UICNRHECHP6.uicnrh.dom>Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,433aad44ed0b5bdb
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!sn-xt-sjc-02!sn-xt-sjc-06!sn-xt-sjc-12!supernews.com!foggy!vm.sas.com!ugcs.caltech.edu!gah
From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: bit.listserv.asm370
Subject: Re: new type of CA for ascii strings
Date: Fri, 22 Sep 2006 13:13:48 -0700
Organization: SAS Inc.
Lines: 31
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <451443FC.mailxN531152GK@seniti.ugcs.caltech.edu>
References: <80ED1590A931EE45BAE1DA52D25AE0F20549D946@UICNRHECHP6.uicnrh.dom>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1158956037 16144 10.19.150.41 (22 Sep 2006 20:13:57 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Fri, 22 Sep 2006 20:13:57 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
User-Agent: nail 9.30 2/20/02
X-Scanned-By: Digested by UGA Mail Gateway on 128.192.1.75
Approved-By: glen herrmannsfeldt <gah@UGCS.CALTECH.EDU>
In-Reply-To: <80ED1590A931EE45BAE1DA52D25AE0F20549D946@UICNRHECHP6.uicnrh.dom>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 22 Sep 2006 20:13:54.0381 (UTC)
FILETIME=[A0A3CFD0:01C6DE83]
Originator: daemon@mozart.unx.sas.com