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

Third Day Class (Assembler E-learning Cource)


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

New User


Joined: 31 Mar 2005
Posts: 16
Location: Bangalore

PostPosted: Wed Apr 20, 2005 3:58 pm
Reply with quote

Hi Friends,

By now you should be familiar with the following terms.

Standard Assembler Coding Format
Statement Field, Continuation-Indicator Field and Identification-Sequence Field.
Instruction-Statement Format.

Now Let us start with third lesson?

[b]Assembler Language Structure:[/b]

[b]Overview of Assembler Language Structure (Algorithm):[/b]

1) Source Module is made up of Source Statements, which can be instruction statements or comment statements.
2) Instruction Statements are of three types as Machine Instructions, Assembler Instructions and Macro Instructions. Comment statements can be any characters.
3) All the three instruction statements are composed to form one to four fields as Name, Operation, Operand and Remarks.
4) Operands for a machine instruction are composed of Expressions. Expressions in turn are composed of terms and combination of terms.
5) All together are composed of EBCDIC or DBCS characters

[b]Overview of Machine Instruction Structure (Algorithm):[/b]

1) Name Field: Name field should be a symbol or space. (Can be a ordinary symbol, variable symbol or a sequence symbol)
2) Operation Field: Operation field should be a symbolic operation code. (Includes symbolic macro codes or macro definitions)
3) Operand Field: Operand field can have zero or more arguments.
4) Operand Field: Arguments are composed of expressions.
5) Operand Field: Expressions are composed of terms or arithmetic combination of terms.
6) Operand Field: Terms can be of symbols, location counter reference, symbol arithmetic reference, self defining term or a literals.
7) Operand Field: The self-defining term in turn can be decimal, hexadecimal, binary, character and graphics.

[b]Overview of Assembler Instruction Structure (Algorithm):[/b]

1) Name Field: Name field can be symbol or spaces. (Can be a ordinary symbol, variable symbol or a sequence symbol)
2) Operation Field: Operation field can be of symbolic operation code. (Includes symbolic macro codes or macro definitions)
3) Operand Field: Operand field is the field which can have zero or more operands
4) Operand Field: Operands are composed of data definition instructions and ordinary assembler instructions
5) Operand Field: For data definition (DC and DS instructions) operands can be composed of Duplication factor, Type, Type Extension, Modifiers and Nominal values. Nominal values are of one or more nominal values as decimal number, expression, character string and graphic string.]
6) For all other ordinary instructions operands can be composed of expression, character strings and symbolic options.

[b]Conditional Assembly Instructions Structure (Algorithm):[/b]

1) Name Field: Name field can be of sequence symbols or spaces or variable symbols.
2) Operation Field: Operation field must be a symbolic operation code.
3) Operand Field: Operand field can have zero or more operands
4) Operand Field: Operand are composed of sequence symbols, variable symbols, expressions or expressions sequence symbols.
5) Operand Field: Expressions are the combination of variable symbols and other characters that constitute an arithmetic expression, logical expression or character expression

[b]Machine Instruction Structure (Algorithm):[/b]

1) Name Field: Name field can be a symbol or a character string
2) Name Field: Symbol can be any one of the following three symbols as Ordinary symbols (or spaces), sequence symbols or variable symbols.
3) Name Field: Character string can be of string excluding spaces and commas and string including spaces.
4) Operation Field: Operation field can be of symbolic operation code.
5) Operand Field: Operand field can have zero or more operands
6) Operand Field: Operands can be of one value or sub lists with more than one entry, each entry having a value.
7) Operand Field: Operands are of characters including spaces and commas or excluding spaces.

** Hey Guys try out with each of these algorithms to draw flow chart diagram. **


Topics to learn in next lesson:

[b]Terms, Literals and Expressions [/b]
Back to top
View user's profile Send private message
dabadekiran

New User


Joined: 31 May 2005
Posts: 1
Location: hyderbad

PostPosted: Tue May 31, 2005 8:20 pm
Reply with quote

icon_lol.gif good one
Back to top
View user's profile Send private message
RANJINI
Warnings : 1

New User


Joined: 19 Apr 2005
Posts: 11

PostPosted: Thu Dec 01, 2005 1:14 pm
Reply with quote

Hi,
I learnt all the 3 day class. I'm icon_sad.gif as I couldn't find any more lessons.

Please start the sessions again.

Thank you,
Ranjini.S
Back to top
View user's profile Send private message
royalchm

New User


Joined: 15 Nov 2007
Posts: 29
Location: Bangalore

PostPosted: Mon Dec 31, 2007 4:47 pm
Reply with quote

Its very helpful as a beginner...Please continue the session.......
Thanks,
Hari
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 31, 2007 5:15 pm
Reply with quote

for very good assembler stuff check this link

http://www.bsp-gmbh.com/turnkey/assembler/
Back to top
View user's profile Send private message
Jörgen Engström

New User


Joined: 30 Jan 2008
Posts: 3
Location: Sweden

PostPosted: Sat Feb 23, 2008 9:23 pm
Reply with quote

Whoa nice link. Trying, but it is pretty hard to find decent tutorials for beginners in datamanip with mainframe hlasm.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Feb 24, 2008 4:32 am
Reply with quote

Hello Jörgen and welcome to the forums,

Quote:
it is pretty hard to find decent tutorials for beginners in datamanip with mainframe hlasm.
Yup, it is. . .

If you can find one, i'd recommend the 360/370 Assembler Language book by Kevin McQuillen that was written in the 1970's (he has a later book that was co-authored with Anne Price, but i have not worked with that newer book).

Kevin also had (has?) a DOS/VSE assembler book but that is not the one i refer to.
Back to top
View user's profile Send private message
Jörgen Engström

New User


Joined: 30 Jan 2008
Posts: 3
Location: Sweden

PostPosted: Sun Feb 24, 2008 5:31 am
Reply with quote

Thanks dick!

The books you speak of, probably only can find them as e-book or over international sites like amazon. Currently I am documenting the things I learn as a beginner and hopefully be able to put together some documents along the way.

Lucky we got a test-LPAR at work so I can try my code pretty much there, trial and abend!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Feb 24, 2008 7:21 am
Reply with quote

You're welcome icon_smile.gif

Yes, i'd check amazon. . .

Even with a test lpar, i'd make sure i was not working in an apf-authorized library. . . .

Good luck and enjoy icon_cool.gif
Back to top
View user's profile Send private message
Jörgen Engström

New User


Joined: 30 Jan 2008
Posts: 3
Location: Sweden

PostPosted: Sun Feb 24, 2008 10:12 pm
Reply with quote

Haha okey. Talked to the most experienced guy there, he set everything up for me and my first question was of course " Can I harm the production system with my assembler trials?" and his response was "No, you'd have to do some strange things to do that".

I will look into apf-authorized library before I get too scared though ^_^ thanks!
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 building java class with zip4j.jar on... Java & MQSeries 0
No new posts Anyone has PL/I learning material PL/I & Assembler 2
No new posts Build dataset list with properties us... PL/I & Assembler 4
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