subject

A processor begins with the number 5 in the memory cell 54. In memory cell 55 is an instruction to load the number 0 (zero) into register 2. In memory cell 56 is an instruction to load the contents of memory cell 54 into register 3. In memory cell 57 is an instruction to switch the program counter to 50 if register 2’s value is greater than 0. In memory cell 58 is an instruction to increment register 3 by 1. (i. e. r3’s new value will be r3’s old value+1) In memory cell 59 is an instruction to increment register 2 by 1. (i. e. r2’s new value will be r2’s old value+1) In memory cell 60 is an instruction to load the program counter with the value 57. In memory cell 61 is an instruction to stop the execution.
a. What is the memory address (cell number) of the last instruction that would be executed?
b. When the program starts executing, what value will be stored in register 2?
c. When the program stops executing, what value would be stored in the memory cell 54?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:40
1. the program must provide following functions to extract some statistics. note that the data_list parameter specified in these functions may be the same for all functions or different for different functions—that is your choice. a skeleton file is provided on mirmir. a) open_file()prompts the user to enter a year number for the data file. the program will check whether the year is between 1990 and 2015 (both inclusive). if year number is valid, the program will try to open data file with file name ‘year.txt’, where is the year. appropriate error message should be shown if the data file cannot be opened or if the year number is invalid. this function will loop until it receives proper input and successfully opens the file. it returns a file pointer and year. i. hint: use string concatenation to construct the file name b) read_file(fp)has one parameter, a file pointer read. this function returns a list of your choosing containing data you need for other parts of this project. c) find_average(data_list) takes a list of data (of some organization of your choosing) and returns the average salary. the function does not print anything. hints: i. this is not the average of the last column of data. it is not mathematically valid to find an average by finding the average of averages—for example, in this case there are many more in the lowest category than in the highest category. ii. how many wage earners are considered in finding the average (denominator)
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
What is one potential problem associated with an organization purchasing new technology early in its lifecycle
Answers: 1
You know the right answer?
A processor begins with the number 5 in the memory cell 54. In memory cell 55 is an instruction to l...
Questions
question
Mathematics, 28.01.2020 14:09
question
Business, 28.01.2020 14:09
Questions on the website: 13722360