Assembly Language Proramming&Modular Programming
Assembly Language Proramming&Modular Programming
PROGRAMMING
Simple 8086 Assembly Language Programs with Explanation
•Assembly level programming is very important to low-level embedded system
design is used to access the processor instructions to manipulate hardware.
•It is a most primitive machine level language is used to make efficient code
that consumes less number of clock cycles and takes less memory as compared
to the high-level programming language.
•It is a complete hardware oriented programing language to write a program
the programmer must be aware of embedded hardware. Here, we are providing
basics of assembly level programming 8086.
Assembly Level Programming 8086
The assembly programming language is a low-level language
which is developed by using mnemonics. The microcontroller or
microprocessor can understand only the binary language like 0’s
or 1’s therefore the assembler convert the assembly language to
binary language and store it the memory to perform the tasks.
Before writing the program the embedded designers must have
sufficient knowledge on particular hardware of the controller or
processor, so first we required to know hardware of 8086
processor.
Simple Assembly Language Programs 8086
The assembly language programming 8086 has some rules such as
•The assembly level programming 8086 code must be written in upper case
letters
•The labels must be followed by a colon, for example: label:
•All labels and symbols must begin with a letter
•All comments are typed in lower case
•The last line of the program must be ended with the END directive
•8086 processors have two other instructions to access the data, such as
WORD PTR – for word (two bytes), BYTE PTR – for byte.
ADVANTAGES
•The program code becomes simple to understand.
•Reduced development time and reduced burden on developers as the different
person can work on each module now as a team.
•Debugging process becomes easier.
•In case of any error or crash, it is easy to locate and fix the error.
•The code reusability can be implemented through the concept of modular
programming. By doing so, we can avoid writing the same sequence of
instructions again and again in the program. This same sequence can be written
separately and can be used whenever needed.