Question: Write the ASM code for the following instructions: ASM code 1. Read two data (i.e. one byte each) from two different memory locations. Add them

 Write the ASM code for the following instructions: ASM code 1.

Write the ASM code for the following instructions: ASM code 1. Read two data (i.e. one byte each) from two different memory locations. Add them and store the result in 90 H of the RAM space 2. Read two data from 20 H and 66 H memory locations respectively. Add the data and store the result in 89 H of the RAM space. 3. Set the bit in the location of 20 H. 4. Clear the bit in the location of 50 H. 5. Add the data (i.e. 03 H) for 10 times cumulatively and store the addition in 99 H location of the RAM space. 6. Add the data (i.e. 03 H) for 400 times cumulatively and store the addition in BB H location of the RAM space. 7. Glow all the LEDs (i.e. Turn ON) connected with MCU 8051 through port 2. 8. Glow the LEDs (i.e. Turn ON) connected with MCU 8051 through port 0, in an alternative pattern (i.e. two consecutive LEDs will be at different states)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!