Question: Task 1 - Consider 8 switches and 8 LEDs in the Edsim 5 1 simulator in the following schematic. Write an 8 0 5 1
Task Consider switches and LEDs in the Edsim simulator in the following schematic.
Write an assembly program to check the status of Sw Sw and Sw and turn on and off the LEDs
according to the following table. In this table, stands for Open and stands for Close.Task Consider switches and LEDs in the Edsim simulator in the following schematic.
Write an assembly program to check the status of Sw Sw and Sw and turn on and off the LEDs
according to the following table. In this table, O stands for Open and C stands for Close.
Task Write an assembly program to check all the switches and if the number of closed
switches is even then shows the following pattern on the LEDs
table
And if the number of closed switches is odd, shows this pattern
Hint: XORanaa if the number of s is odd. In the Xor instructions syntax is as follow:
XRL c bit
And you can transfer a bit to another one by the following instructions:
Mov c bit
Mov bit, c
Also, you can check the value of carry flag with the following instructions:
JC Label
jump to label if
JNC Label
By the way can you explain how to work it on the simulator because when i checked the previous answers my edsim doesnt respond
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
