Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

HLASM bug

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 546
Location: The Universe

PostPosted: Wed Jul 26, 2017 6:02 pm    Post subject: HLASM bug
Reply with quote

I have observed a minor bug in HLASM. Unfortunately I'm not in a position to open a PMR for the product.

The General Purpose Register cross reference topic in V1R6 Programmer's Guide states
Quote:
This section of the listing shows all references in the program to each of the general registers.

My emphasis with the red color on "all."

It does not show an explicit register reference in S type address constants. For example, in this assembly
Code:
SCON     CSECT       
         L     2,0(,6)
         DC    S(0(6))
         END         
HLASM shows the reference to register 6 in the L instruction, but not in the S-type address constant.
Code:
Register  References (M=modified, B=branch, U=USING, D=DROP, N=index)
   0(0)    (no references identified)
   1(1)    (no references identified)
   2(2)       2M
   3(3)    (no references identified)
   4(4)    (no references identified)
   5(5)    (no references identified)
   6(6)       2
Back to top
View user's profile Send private message

sergeyken

Active User


Joined: 29 Apr 2008
Posts: 128
Location: Maryland

PostPosted: Thu Jul 27, 2017 1:59 am    Post subject:
Reply with quote

In this example I can see 2 references to register 2 (instead of 1 reference), and 2 references to register 6 (which is correct).
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 546
Location: The Universe

PostPosted: Thu Jul 27, 2017 8:47 am    Post subject:
Reply with quote

OK. Where is the second reference to register 2? Remember, the sole purpose of the example was to produce the register XREF report, not to execute, which it won't. I first noticed the bug in a 600 line program that produced a full page in the register XREF report. The example was minimal so the issue would obviously stand out.

I use S-cons quite a lot in my work, but not very often something like S(0(6)). Actually, it was SL2(0(6)), but there was no point in littering up the example with extraneous junk.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HLASM WTO Mechanics steve-myers PL/I & Assembler 5 Mon Jul 20, 2015 3:52 pm
No new posts How to recall (or wait for recall of)... JPVRoff PL/I & Assembler 4 Wed Feb 18, 2015 9:19 am
No new posts Call HLASM from Java directly k_v_mahesh PL/I & Assembler 1 Tue May 06, 2014 6:58 pm
No new posts Biggner to MVS HLASM - Need Good Book... dick scherrer PL/I & Assembler 4 Mon Jul 11, 2011 8:11 am
No new posts Comparison of COBOL, C and HLASM aravindanrkumar PL/I & Assembler 1 Fri Jan 11, 2008 2:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us