Question: Question 1 : Write a piece of code using Assembly language to perform the shown logic circuit in Figure 1 . For that, A =

Question 1: Write a piece of code using Assembly language to perform the shown logic circuit
in Figure 1. For that, A=A2H,B=F3H and R0=98H. Show the output of each gate in
hexadecimal.
Also, sketch the flow chart of the process.
[6 Marks]
(Hint: you may use any other proper register to perform the logic operations)
riguIe 1. LUgIC LICUIC
Question 2: Write a piece of code using Assembly language to make the lower 4-bits of the
LEDs shown in Figure 2 blinking as per the criteria below:
a. First, Count-Down from (15)10 to (0)10.
b. Second, Count-Up from (0)10 to (15)10.
c. Third, steps a to b must repeat sequentially.
Also, sketch the flow chart of the process.
[14 Marks]
Figure 2: 8-bit LEDs in the EdSim51D1 Simulator. The first bit from the left is the MSB while
the first bit from the right is the LSB.
 Question 1: Write a piece of code using Assembly language to

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!