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

Second Day Class (Assembler E-Learning Class)


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: Tue Apr 19, 2005 3:48 pm
Reply with quote

Hi Friends,


By now you should be familiar with the following terms to continue to the next lesson.

Symbolic Programming Language
Source Module, Object Module, Load Module, and Program Listing.
Byte and Bit Level
Machine Instructions, Assembler Instructions, Macro Instructions, and Macro Definitions.
Processing Sequence.

Now let us start the second lesson?

Coding And Structure

Assembler Language Coding Convention:

Assembler Language statements usually occupy 80-Character line. Each line is divided into three main fields.

Statement Field
Continuation Indicator Field and
Identification Sequence Field

1234??????????????71 72 737475????.?80
Statement Field Continuation Identification Sequence
Indicator Field Field


Statement Field: The instructions and comment statements must be coded in Statement Field.

Continuation Indicator Field: The standard position of continuation field is column 72. A non-space character in this column indicates that the current statement is continued in the next line.
Note: The continue column is 16.

Identification Sequence Field: The Identification Sequence field can contain Identification characters or sequence numbers or both. If the ISEQ instruction has been specified to check this field, the assembler verifies whether or not the source statements are in correct sequence.


Continuation Line: To continue a statement in another line
1) Enter a non-space character in continuation indicator field (column 72). This non-space character must not be a part of the statement coding.
2) Continue the statement in next line starting from column 16. Columns to the left of column 16 should be spaces.
Note: If an operand is continued after column 16, it is taken to be a comment.

Blank Line: Blank lines are accepted in source programs.

Comment Statements: Comment statements require asterisk in the beginning of the column. Internal Macro definition comment statements require a period followed by asterisk. Internal macro comments are accepted as comment statements in open code.


Instruction Statement Format: Instruction Statement must consist of one to four entries in the statement field.

A Name Entry
An Operation Entry
An Operand Entry and
Remarks Entry

These entries must be separated by one or spaces, and must be written in order stated.

Example:
COMP CR 5,6 NEW SUM TO OLD.
Name Operation Operand Remarks

The symbol comp names the comparison instruction. The operation entry CR is the mnemonic operation code for register-to-register compare operations and the two operands (5,6) designate the two general registers, whose contents are to be compared. The Remarks instruction reminds the user that this instruction compares NEW SUM TO OLD.

Name Entry: Name entry is a symbol created to identify the instructions. Name entry is optional. If coded, should start from column 1, otherwise it is assumed no Name Entry. The symbol must consist of 63 or fewer alphanumeric characters.

Operation Entry: The operation entry is a symbolic operation code specifying the machine, assembler or macro instruction operation. An operation entry is mandatory and must appear in the same line if name specified.

Operand Entry: Operand Entries contain zero or more operands that identify and describe the data to be acted upon by the instruction. Commas separate operands and no spaces are allowed between operands and the commas that separate them.
Example: The following instruction is correct:

LA R1,4+5 NO SPACE

The following is wrong

LA R1,4 + 5 SPACES INCLUDED.

Note: Spaces inside the enclosed quotation is not wrong.


Topics to learn in next class are

Assembler Language Structure
Terms, Literals and Expressions.



** Any doubts are welcome**
Back to top
View user's profile Send private message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Thu May 26, 2005 3:56 pm
Reply with quote

Hi,
May I know why you stopped posting.
From now I can contribute my knowledge in this section.
keep going on.
Regards,
Sudhaaa
Back to top
View user's profile Send private message
ilanchezhian

New User


Joined: 27 Mar 2006
Posts: 1

PostPosted: Tue Jul 25, 2006 12:28 pm
Reply with quote

The training is good. i have a doubt, where do we code this ISEQ instruction? How does it check the sequence of the source code? Please do clarify
Back to top
View user's profile Send private message
kumaran_subramanian

New User


Joined: 08 Oct 2010
Posts: 3
Location: chennai

PostPosted: Fri Oct 15, 2010 4:11 pm
Reply with quote

Hi Ajay ,
Ther training is good. if you have any PPt presentation, please uploaded in this forum, or share the URL also.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Oct 15, 2010 4:22 pm
Reply with quote

enrico,
is this a record breaker?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Oct 15, 2010 4:51 pm
Reply with quote

here are the stats

Code:
The topic has been resurrected after
...          4 year(s) - (months difference / 12 )
...          4 year(s) - (difference )
...         51 months
...       1543 days
...      37035 hours
...    2222143 minutes
...  133328580 seconds


I am not sure about the guinness !
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