IGNOU BCA BCSL-022 assembly language tutorial series basics

In our BCSL-022 assembly language tutorial series, lets view about basics of assembly language programming like structure of 8086  assembly language and explanation of each part of basic structure.

IGNOU BCA 8086 tutorial basics of assembly
8086 assembly language lab tutorial basics of .asm program structure TASM

Above is common for All programs.As IGNOU BCA we use TASM 3.x as our assembler so all of posts will be based on TASM.

Line 1: comment which you can write anything but in exam don’t forget to mention program description

Line 2: It is  common unless you customize segment names so for now just remember it. Same applies to Line number 3.

Line number 4 on wards declare you variables and end with Line 5 statement. Basically saying data ends ( see ‘s’) it means segment.

Now variable part over, now time to start coding using those variables. Line number 6,7 declares that part. After line 7 you can write your code. Line 10,11 indicates end of program.

SO this is basic structure  you need to remember  for any assembly language program which you going to use to compile with TASM software.

Next we will see about variables how to declare them and what are the types of variables available.

But one basic thing  you need to get clear understanding is “bit” and “byte” without knowing what is bit and byte nothing you going learn. For most of you this statement looks odd who the hell don’t know about bit and byte , but surprising most of the people confuses about it.

 

What is bit: Hardware circuit which can be charged or discharge that mean if charged it indicated 1 and no charge it is 0. Group of this 8 devices is called 1 byte.

Excellent reference  available for bit and byes here. My suggestion is understand it. It is very important. Bits and Bytes must read for BCSl-022.

Hope by now you got clear understanding about assembly language common structure and what is bit and  byte. Next post, w ill see variables part.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.