Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:30, kierafisher05
What is the most popular genre of video games?
Answers: 1
image
Computers and Technology, 23.06.2019 00:00, eguzmandpandoracom
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, shelley3135
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
image
Computers and Technology, 23.06.2019 02:00, rah45
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
Do you know the correct answer?
In this problem you are designing a calculator to calculate the min and max values among several giv...

Questions in other subjects:

Konu
History, 31.08.2019 07:10
Konu
Biology, 31.08.2019 07:10
Konu
Biology, 31.08.2019 07:10