Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the attached code which displays numbers from 0 to 9 in an infinite loop sequence in the 4th LED, using the Edsim51 tool. For
Consider the attached code which displays numbers from 0 to 9 in an infinite loop sequence in the 4th LED, using the Edsim51 tool. For example, the number 1 is displayed in the image below. Modify the assembly code so that instead numbers 1, 2 and 3 are displayed in an infinite loop. Remember to adjust the Update Freq. to 1 so that the numbers can be observed as they change. Make sure to include your name, and date in the code comments. Also provide comments next to some of the lines or above them. Name the code prog_1.asm and upload it to the Canvas assignments. MOV 30H, \#11000000B MOV 31H, \#11111001B MOV 32H, \#10100100B MOV 33H, \#10110000B MOV 34H, \#10011001B MOV 35H, \#10010010B MOV 36H, \#10000010B MOV 37H, \#11111000B MOV 38H, \#10000000B MOV 39H, \#10010000B MOV 3AH, \#0 CLR P3.4 CLR P3.3 start: MOV R0, \#3OH loop: MOV A, @R0 JZ start MOV P1, A INC RO JMP loop
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