On Fri, Jul 21, 2017 at 8:05 AM, Steve Smith <[email protected]> wrote:
> First, it shouldn't take more time to write the macro you want than it did > the email :-) > I had the macro coded before I wrote the email. I was just hoping for an IBM "solution" so that I could use something "standard". Another anal trait of mine. It's one reason why I have now "embraced" LE compliant HLASM and the CEEENTRY macro. > > Second, I'm not sure there's any benefit in differentiating 32 vs. 64 bit > regs. There *are* the same, of course. Also, I believe HLASM flags some > instructions incorrectly (iirc, it requires GR32 for LLILL, or GR64 for > IILL). > > Third, I believe that MVI example would be flagged as improper, but I'm > pretty sure no one's going to "enhance" HLASM to evaluate comments. > Well, technically MVI SOMEVAR,R0 will assemble the same as: MVI SOMEVAR,0 The comment was just my attempt to show that what the original person was thing should have been code: STC R0,SOMEVAR > > Fourth (I really don't know why I'm numbering my paragraphs today), too > many programmers aren't nearly anal enough :-) > I like the assembler / compiler to help me code correctly. I am so anal, at times, that I will track down and eliminate even _informational_ messages. > > sas > > > -----Original Message----- > > > > From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@ > > LISTSERV.UGA.EDU] > > > On Behalf Of John McKown > > > Sent: 20 July 2017 20:52 > > > To: [email protected] > > > Subject: superior IBM supplied "register equate" macro? > > > > > > I know about YREGS and IAZYREG. But there are not what I want. What I > > want > > > would have lines akin to: > > > > > > R0 EQU 0,,,,GR > > > R0_64 EQU 0,,,,GR64 > > > R0_32 EQU 0,,,,GR32 > > > AR0 EQU 0,,,,AR > > > > > > > > > Am I just being "too anal" in wanting to have something flagged like: > > > > > > MVI SOMEVAR,R0 SAVE HIGH BYTE OF R0 IN STORAGE > > > * ABOVE COMMENT IS OBVIOUSLY DONE BY A ROOKIE > > > > > > or > > > > > > LG R0,DOUBLEWORD > > > > > > > > > -- Veni, Vidi, VISA: I came, I saw, I did a little shopping. Maranatha! <>< John McKown
