Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started