IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

HLASM bug


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
steve-myers

Active Member


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

PostPosted: Wed Jul 26, 2017 6:02 pm
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

Senior Member


Joined: 29 Apr 2008
Posts: 2012
Location: USA

PostPosted: Thu Jul 27, 2017 1:59 am
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: 917
Location: The Universe

PostPosted: Thu Jul 27, 2017 8:47 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts HLASM WTO Mechanics PL/I & Assembler 5
No new posts How to recall (or wait for recall of)... PL/I & Assembler 4
No new posts Call HLASM from Java directly PL/I & Assembler 1
No new posts Biggner to MVS HLASM - Need Good Book... PL/I & Assembler 4
Search our Forums:

Back to Top