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
 

 

Question about compatibility HLASM with H assembler

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

New User


Joined: 08 Jul 2005
Posts: 3

PostPosted: Fri Jul 08, 2005 8:00 pm    Post subject: Question about compatibility HLASM with H assembler
Reply with quote

Hi.
I am newcomer and did not program IBM assembler since 1992.
I'd like to know, if Length attribute is present in H assembler. I look through some HLASM source code and see the following

...
WKODSN DS CL44
...
MVI WKODSN,X'40'
MVC WKODSN+1(43),WKODSN

...
and below

L R1,44

Why the IBM assembler programmer didn't use the length attribute or its equate that makes code more readable?
i.e.
MVI WKODSN,X'40'
MVC WKODSN+1(L'WKODSN-1),WKODSN
...
L R1,L'WKODSN

I program for Intel with TASM and I always give mnemonic names for number constants. But when I look through IBM assembler code I see numerous magic numbers! Why IBM assembler programmers uses mnemonics name of numbers so rarely?
Back to top
View user's profile Send private message

jayesh_g

New User


Joined: 03 Mar 2004
Posts: 24

PostPosted: Sat Jul 09, 2005 10:19 pm    Post subject: Re: Question about compatibility HLASM with H assembler
Reply with quote

Quote:
I'd like to know, if Length attribute is present
Yes
Quote:
Why the IBM assembler programmer didn't use the length attribute or its equate that makes code more readable?
That question would be best answered by the person who coded the program you are looking at icon_smile.gif
Quote:
Why IBM assembler programmers uses mnemonics name of numbers so rarely?
There is no rule which prevents the programmer from using mnemonics. Usage of mnemonics is recommended to make the code more readable.
Back to top
View user's profile Send private message
Vladimir Grigoriev

New User


Joined: 08 Jul 2005
Posts: 3

PostPosted: Sun Jul 10, 2005 2:05 pm    Post subject: Re: Question about compatibility HLASM with H assembler
Reply with quote

I am more interesting is H assembler supports L' modifier for defining data constant?
And second question why is HLASM is called "high level"? What extraodinary features has it that deserves such name? On my point of view it must be called "low level" assembler. For example where is not structure definition directive as in MASM or TASM for the PC.

For example lets look TASM code

IDEAL

STRUC MyStruc
Field1 dw ?
Field2 dw ?
ENDS MyStruc

And I can to have access to structure member as

StrucData MyStruc ?
...
mov [StrucData.Field1],100

And what about HLASM?
Back to top
View user's profile Send private message
jayesh_g

New User


Joined: 03 Mar 2004
Posts: 24

PostPosted: Mon Jul 11, 2005 11:21 pm    Post subject: Re: Question about compatibility HLASM with H assembler
Reply with quote

I didn't understand your first sentence.

I guess "High Level" would make more sense if you look at it from a historical perspective. There was Assembler F, Assembler G, Assembler H etc before HLASM made its appearance. http://www-306.ibm.com/software/awdtools/hlasm/more.html

Since I don't know TASM, whatever you have coded doesn't make any sense to me icon_smile.gif

We can always argue till kingdom comes as to which language is better. Each one has its own place in the big scheme of things. Learn to respect that and let us all co-exist peacefully icon_smile.gif
Back to top
View user's profile Send private message
Vladimir Grigoriev

New User


Joined: 08 Jul 2005
Posts: 3

PostPosted: Tue Jul 12, 2005 1:55 pm    Post subject:
Reply with quote

Thank you for your answer.
I only would like to point out that when you has knowledge of more than one similary language you start to campare the two.
At present I read about HLASM and want to understand what important things (in syntax, new language constructions and so on) make it principally diffirent from its predessores.
My first question was about compatibility between HALSM and H-assembler namely about length modifier. Is length modifier is present in H assembler (assembler instructions DC and DS)? And where can I find a short reference about various differences of all IBM assemblers?
Thank you

Vladimir Grigoriev
Back to top
View user's profile Send private message
jayesh_g

New User


Joined: 03 Mar 2004
Posts: 24

PostPosted: Thu Jul 14, 2005 12:01 am    Post subject: Re: Question about compatibility HLASM with H assembler
Reply with quote

I misunderstood your question earlier! I thought that you were asking about HLASM.

I don't know about Assembler H. "End of Service" was in 1995. Why are you still using it?

You can check out ASSEMBLER-LIST LISTSERV to get an answer to your questions.

-Jayesh.
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 A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts Fault Analyzer - listings question. egrove IBM Tools 4 Thu Aug 11, 2016 5:31 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
No new posts SQL Order By related question Joseph K Thomas DB2 8 Fri Mar 18, 2016 12:53 pm


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