You are on page 1of 14

9/2/23, 9:29 AM CitizenChoice

CitizenChoice Login

Assembly Language
Programming based on
8085/8086 : Instruction Data
Transfer Arithmetic, Logic,
Branch Operation, Stacks and
Subroutine : Conditional Call
and Return Instruction.

Que 4.1

Why is assembly language used to program


microprocessors? What are the disadvantages of
microprocessors?

                                                                           AKTU 2018-19,
Marks 07

                                                                 OR

Explain assembler level programming and draw the


flowchart of assembler level programming. 

                                                                           AKTU 2017-18,
Marks 10
Answer: 

The assembly programming language is a low-level language


which uses mnemonics or symbolic codes as instruction, for
example: ADD, SUB, DAA, IN, OUT, MVI, MOV, CALL, RET ,etc.For
processing of assembly level language we need a language
translator called Assembler.It convert assemble language
code to machine code.Due to mnemonics(english like words)
https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 1/14
9/2/23, 9:29 AM CitizenChoice

it makes faster for the programmer to execute instruction,and


CitizenChoice
hence easy to debug the program also programmer does
not have to remember the operation codes and memory
addresses.
Disadvantages of Microprocessor:
The microprocessor has a limitation on the size of data.
Most of the microprocessor does not support floating
point operations.
The main disadvantage is it's over heating physically.
It should not contact with the other external devices.
It does not have any internal peripheral like ROM, RAM
and other I/O devices.

 
Flowchart of Assembler Level Programming:

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 2/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice

Que 4.2

Develop an assembly language programme for 8085


to add 5 numbers of 8 bits whose sum is more than 8
bits. The numbers are stored from 8501 to 8505. The
result is to be stored in 8601 and 8602.

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 3/14


9/2/23, 9:29 AM CitizenChoice

    AKTU 2016-17, Marks 10


CitizenChoice
Answer:

Que 4.3

Develop a program to add two numbers of 8 byte


long whose result is more than 8 byte. The first
number is stored from 7501 to 7508 and the second
number is stored from 8501 to 8508 and the result is
to be stored from 9501 to 9509.            

 AKTU 2016-17, Marks 10

                                                                OR
https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 4/14
9/2/23, 9:29 AM CitizenChoice

Develop an assembly language programme in 8085


CitizenChoice
for finding the sum of two eight bit numbers if the
result is more than 8 bits. Consider that the numbers
are in the memory and the result is to be stored in
the memory.

                                                                                         AKTU 2014-15,
Marks 10
Answer:
LDA,7501:Move first byte of first number into A.
LDB,8501:Move first byte of second number into B.
ADD B:Add the contents of B with accumulator.
STA, 9501:Store the result to memory location 9501
LDA,7502:Move second byte of first number into A.
LDB,8502:Move second byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9502:Store the result to memory location 9502
LDA,7503:Move third byte of first number into A.
LDB,8503:Move third byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9503:Store the result to memory location 9503.
LDA,7504:Move forth byte of first number into A.
LDB,8504:Move forth byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9504:Store the result to memory location 9504.
LDA,7505:Move fifth byte of first number into A.
LDB,8505:Move fifth byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9505:Store the result to memory location 9505.
LDA,7506:Move sixth byte of first number into A.
LDB,8506:Move sixth byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9506:Store the result to memory location 9506.
https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 5/14
9/2/23, 9:29 AM CitizenChoice

LDA,7507:Move seventh byte of first number into A.


CitizenChoice
LDB,8507:Move seventh byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9507:Store the result to memory location 9507.
LDA,7508:Move eighth byte of first number into A.
LDB,8508:Move eighth byte of second number into B.
ADC B:Add the contents of B with accumulator with carry.
STA,9508:Store the result to memory location 9508.
MVI A,0:Move 0 into accumulator,A.
MVI B,0:Move 0 into register B.
ADC B:Add the contents of B with accumulator with carry.
STA 9509:Store the result to memory location 9509.

Que 4.4

Write a program to obtain larger of the contents of


memory location 2140H and 2141H.

Answer:

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 6/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice

Que 4.5

Write a program to multiply two 8-bit numbers to


result in 8 bit number only i.e., maximum value could
be FEH.
Answer:

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 7/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice
Que 4.6

Write an assembly language program to divide a 16-


bit number by an 8-bit number.
 Answer:

Que 4.7

Draw the flow chart and write an assembly language


programme for the addition of two 16-bit numbers
considering carry. The numbers are stored in
memory starting from 2000H. Store the result of
addition and carry from memory 3000H.
Answer:

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 8/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice

Que 4.8

Write a program to arrange a data array in ascending


order.
Answer:

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 9/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 10/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice
Que 4.9

Write an assembly language program in 8085 to


transfer the contents of the flag register into the D
register.

                                                                                     AKTU 2018-19,
Marks 07
Answer:

Que 4.10

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 11/14


9/2/23, 9:29 AM CitizenChoice

Write an assembly level program in 8085 to convert


CitizenChoice
a binary number into its equivalent BCD form.

                                                                                 AKTU 2018-19,
Marks 07
Answer:

Que 4.11

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 12/14


9/2/23, 9:29 AM CitizenChoice

An 8085 is executing the following program:


CitizenChoice
2000:        LXI H, 4325H;

                          LXI SP, 3000H;

                          MOV A, H;

 ADD L;

 PUSH PSW;

  POP H;

  END

At the end of the program execution, what will be the


contents of the HL register pair? 

                                                                                AKTU 2018-19,
Marks 07
Answer:

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 13/14


9/2/23, 9:29 AM CitizenChoice

CitizenChoice

Citizen Choice
Citizen Choice is a social networking site for people craving to teach and learn.
We are committed to enable people to learn and collaborate with each other.

Privacy Policy

Terms of Use

Contact Us

All Rights Reserved by ©Citizen Choice 2020

https://citizenchoice.in/course/Microprocessor-1/Chapter 4/Assembly-Language-Programming_1-1 14/14

You might also like