subject

In this problem you are designing a calculator to calculate the min and max values among several given number. assume the given numbers are located in file registers starting with reg20 to reg30. assume all input values are 8-bit unsigned numbers greater than zero. complete the following codes:
(i) write a program that reads the content of registers reg20 to reg30. a zero register indicates the last input value. the number of non-zero entries must be recorded in a register called num_reg (reg40).
(ii) find the smallest input value. the smallest number must be recorded in reg41 and called min_reg.
(iii) find the largest input value. the largest number must be recorded in reg42 and called max_reg.
write the code in pic18 assembly language using mplab. use the (77 ) as reg20.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior
Answers: 1
You know the right answer?
In this problem you are designing a calculator to calculate the min and max values among several giv...
Questions
question
Mathematics, 04.05.2021 19:50
question
Mathematics, 04.05.2021 19:50
question
Mathematics, 04.05.2021 19:50
question
English, 04.05.2021 20:00
Questions on the website: 13722361