Consider a hypothetical machine with the following characteristics: a. instruction format: (total of 12 bits, LSB is bit 0, MSB is bit 11) Opcode (4 bits) Address (8 bits) b. internal CPU registers: PC (Program Counter)-holds the address of the instruction IR (Instruction register) - holds the instruction to be executed A-temporary storage B-temporary storage. c. partial list of opcodes M-memory address 0000-STA M-store A to memory M 0001-LDA M-load A from memory M 0011-STB M-store B to memory M 0101-LDB M-load B from memory M 1000-ADDA M-add data in M to A 1010-ADDAB-add B to A note: IR contains both the opcode and address, A and B are 8-bit registers; data at memory location 20 is 05; data at memory location 30 is 08; all numbers are in hex, answers should be in hex; Given the program segment below: LDA 20 LDB 30 ADDAB Questions: 1. What will be the contents of IR after fetching instruction 1? 2. What will be the contents of IR after fetching instruction 2? 3. What will be the contents of register A after instruction 3?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
I need the answer as soon as possible
Consider a hypothetical machine with the following characteristics:
a. instruction format: (total of 12 bits, LSB is bit 0, MSB is bit 11)
Opcode (4 bits)
Address (8 bits)
b. internal CPU registers:
PC (Program Counter) - holds the address of the instruction
IR (Instruction register) - holds the instruction to be executed
A-temporary storage
B-temporary storage
c. partial list of opcodes
M-memory address
0000-STA M-store A to memory M
0001-LDA M-load A from memory M
0011-STB M-store B to memory M
0101-LDB M-load B from memory M
1000-ADDA M-add data in M to A
1010-ADDAB-add B to A
note: IR contains both the opcode and address, A and B are 8-bit registers;
data at memory location 20 is 05; data at memory location 30 is 08; all numbers are in hex; answers should be in hex;
Given the program segment below:
LDA 20
LDB 30
ADDAB
Questions:
1. What will be the contents of IR after fetching instruction 1?
2. What will be the contents of IR after fetching instruction 2?
3. What will be the contents of register A after instruction 3?
Transcribed Image Text:Consider a hypothetical machine with the following characteristics: a. instruction format: (total of 12 bits, LSB is bit 0, MSB is bit 11) Opcode (4 bits) Address (8 bits) b. internal CPU registers: PC (Program Counter) - holds the address of the instruction IR (Instruction register) - holds the instruction to be executed A-temporary storage B-temporary storage c. partial list of opcodes M-memory address 0000-STA M-store A to memory M 0001-LDA M-load A from memory M 0011-STB M-store B to memory M 0101-LDB M-load B from memory M 1000-ADDA M-add data in M to A 1010-ADDAB-add B to A note: IR contains both the opcode and address, A and B are 8-bit registers; data at memory location 20 is 05; data at memory location 30 is 08; all numbers are in hex; answers should be in hex; Given the program segment below: LDA 20 LDB 30 ADDAB Questions: 1. What will be the contents of IR after fetching instruction 1? 2. What will be the contents of IR after fetching instruction 2? 3. What will be the contents of register A after instruction 3?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY