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

Question about compatibility HLASM with H assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 23

PostPosted: Sat Jul 09, 2005 10:19 pm
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
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: 23

PostPosted: Mon Jul 11, 2005 11:21 pm
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
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: 23

PostPosted: Thu Jul 14, 2005 12:01 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts question for Pedro TSO/ISPF 2
No new posts Finding Assembler programs PL/I & Assembler 5
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
Search our Forums:

Back to Top