HW3 Exercise Quiz
Started: Mar 20 at 10:02pm
Quiz Instructions
Question 1 2 pts
4.6b D90A3F
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F (Enter the 4 digit hex number Example 1A23 0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A23 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
Question 2 2 pts
4.4 Answer the following questions for the machine language instruction F70BD3
spaces)
What is the Opcode in binary (Only 1’s and 0’s with no
What does the instruction do? (Choose from Add, Subtract, Load, Store, Return, Bitwise OR, Bitwise AND)
numbers)
spaces)
156 of text)
characters)
What is the register, r, field in binary? (Only 1’s and 0’s with no spaces)
Which register does it specify? ( Only X or A with no extra spaces words or
What is the addressing, aaa, field in binary? (Only 1’s and 0’s with no
Which addressing mode does it specify? (Choose from the list on page
(Only the 4 place hex number with on spaces or extra
Question 3 2 pts
4.6a C90A3F
What are the four hexadecimal values after the statement executes and what are the values of NZVC?
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0)
0A3F: Contents of Memory Location 0A3F (Enter the 4 digit hex number Example 1A34)
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A23)
Question 4 2 pts
How many bytes are in the main memory of the Pep/8 computer? Provide answer in decimal with no spaces, commas or extra characters Example
45109 Not 45,109 or 45109 bytes
NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
Question 5 2 pts
4 6e 790A3F
4.6e 790A3F
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A2 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
3
Question 6 2 pts
Determine the output of the following Pep/8 machine-language program. The left column in each part is the memory address of the first byte on the line:
0000 C1000C 0003 18
0004 F1000B 0007 51000B 000A 00 000B 00 000C F0D4
Question 7 2 pts
4.6c F10A41
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A23 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
Question 8 2 pts
Suppose the main memory i completely filled with an equal number of unary and nonunary instructions. How many total instructions would it contain?
Provide only the number with no commas or words. Example
Question 9 2 pts
4.6h A90A3F
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A23 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
29976 Not 29,976 or 29976 instructions
Question 10 2 pts
46i 18
4.6i 18
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register (Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A2 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
3
Question 11 2 pts
4 6g
990A3F
4.6g 990A3F
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A2 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
Question 12 2 pts
What is the maximum number of instructions that would fi in the main memory if none of the instructions are unary instructions?
Provide the number with no commas or words. Example
98870 Not 98,870 or 98870 non unary instructions
3
Question 13 2 pts
Question 14 2 pts
4.6d E10A41
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A23 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
Determine the output of the following Pep/8 machine-language programiftheinput is tab. The left column is the memory address of the first byte on the line:
0000 490010
0003 490011
0006 490012 0009 510011 000C 510010 000F 00
Question 15 2 pts
Suppose the main memory of the Pep/8 were completely filled with unary instructions. How many unary instructions would it contain.
Provide only the decimal number with no comma or extra characters Example 34901 Not 34,901 or 34901 unary instructions
Question 16 2 pts
4.6f 810A41
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A23 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
Question 17 2 pts
4.4 Answer the following questions for the machine language instruction 8B00AC What is the Opcode in binary (Only 1’s and 0’s with no
spaces)
What does the instruction do? (Choose from Add, Subtract, Load, Store, Return, Bitwise OR, Bitwise AND)
numbers)
spaces)
156 of text)
characters)
What is the register, r, field in binary? (Only 1’s and 0’s with no spaces)
Which register does it specify? ( Only X or A with no extra spaces words or
What is the addressing, aaa, field in binary? (Only 1’s and 0’s with no
Which addressing mode does it specify? (Choose from the list on page
(Only the 4 place hex number with on spaces or extra
Question 18 2 pts
How many bytes are in the main memory of the Pep/8 computer? Provide answer in decimal with no spaces, commas or extra characters Example
45109 Not 45,109 or 45109 bytes
Question 19 2 pts
Suppose the main memory i completely filled with an equal number of unary and nonunary instructions. How many total instructions would it contain?
Provide only the number with no commas or words. Example
29976 Not 29,976 or 29976 instructions
Question 20 2 pts
4 6g 990A3F
4.6g 990A3F
What are the four hexadecimal values after the statement executes and what are the values of
A: Accumulator (Enter the 4 digit hex content of the accumulator Example FFFF)
X: Index Register Enter the 4 digit hex content of the index register Example 00F0) 0A3F: Contents of Memory Location 0A3F
0A41: Contents of Memory Location 0A41 (Enter the 4 digit hex number Example 1A2 NZVC The status bits (Enter with only 1’s and 0’s, Example 1100 Not 1 1 0 0 or 11xx)
3
Quiz saved at 10:03pm Submit Quiz