Table 4 is showing the address location of the instructions stored in the memory. Please refer to Table 4 in order to answer Question 4 (i) to (v). Table 4 No Address Instruction 1 x3000 1 1 1 0 0 0 1 0 1 1 1 1 1 1 1 1 2 x3001 0 1 0 1 0 1 1 0 1 1 1 0 0 0 0 0 3 x3002 0 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0 4 x3003 0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0 5 x3004 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1 6 x3005 1 1 1 1 1 0 0 0 0 0 1 0 0 0 0 1 7 x3006 0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 1 8 x3007 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 9 x3008 0 0 0 1 0 1 0 0 1 0 1 1 1 1 1 1 10 x3009 1 1 1 1 0 0 0 0 0 0 1 0 0 1 0 1 Answer all the following questions by referring to the ISA table provided in Appendix A i)List down the trap vectors that are found in the program code and state its routines. List down all registers that are found in the program code. List down the addresses that consist of control instruction that are found in the program code. Then, comment each of the control instructions which the addresses are listed. List down one address of instruction which involves negative numbers that would need 2’s complement process and give comment on the instruction

Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
icon
Related questions
icon
Concept explainers
Question
  1. Table 4 is showing the address location of the instructions stored in the memory. Please refer to Table 4 in order to answer Question 4 (i) to (v).

Table 4

No

Address

Instruction

1

x3000

1 1 1 0 0 0 1 0 1 1 1 1 1 1 1 1

2

x3001

0 1 0 1 0 1 1 0 1 1 1 0 0 0 0 0

3

x3002

0 1 0 1 0 1 0 0 1 0 1 0 0 0 0 0

4

x3003

0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 0

5

x3004

0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 1

6

x3005

1 1 1 1 1 0 0 0 0 0 1 0 0 0 0 1

7

x3006

0 0 0 1 0 1 1 0 1 1 0 0 0 0 0 1

8

x3007

0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1

9

x3008

0 0 0 1 0 1 0 0 1 0 1 1 1 1 1 1

10

x3009

         1 1 1 1 0 0 0 0 0 0 1 0 0 1 0 1

 

Answer all the following questions by referring to the ISA table provided in Appendix A

i)List down the trap vectors that are found in the program code and state its routines.                               

 

 

 

 

  1. List down all registers that are found in the program code.              

 

 

 

  • List down the addresses that consist of control instruction that are found in the program code. Then, comment each of the control instructions which the addresses are listed.                                                                                        

 

 

 

 

 

  1. List down one address of instruction which involves negative numbers that would need 2’s complement process and give comment on the instruction.

 

 

 

 

 

  1. From the given 10 lines of program code, select and modify two lines of program code in order to replace R2, a register that is used for counter, to R5. Write down the answer using Table 5.             

 

     

Table 5

No

Address

Program Code

New Program Code

1

 

 

 

 

2

 

 

 

 

 

 

15 14 13 12 11 10 9
8 7 6 5 4 3 2 1 0
ADD*
0001
DR
SR1
00
SR2
ADD*
0001
DR
SR1
1
imm5
AND*
0101
DR
SR1
00
SR2
AND
0101
DR
SR1
imm5
BR
0000
n
zp
PCoffset9
JMP
1100
00
BaseR
000000
JSR
0100
1
PCoffset11
JSRR
0100
00
BaseR
000000
LD+
0010
DR
PCoffset9
LDI*
1010
DR
PCoffset9
LDR*
0110
DR
BaseR
offset6
LEA*
1110
DR
PCoffset9
NOT*
1001
DR
SR
111111
RET
1100
00
111
000000
RTI
1000
000000000000
ST
0011
SR
PCoffset9
STI
1011
SR
PCoffset9
STR
0111
SR
BaseR
offset6
TRAP
1111
0000
trapvect8
reserved
1101
Transcribed Image Text:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 ADD* 0001 DR SR1 00 SR2 ADD* 0001 DR SR1 1 imm5 AND* 0101 DR SR1 00 SR2 AND 0101 DR SR1 imm5 BR 0000 n zp PCoffset9 JMP 1100 00 BaseR 000000 JSR 0100 1 PCoffset11 JSRR 0100 00 BaseR 000000 LD+ 0010 DR PCoffset9 LDI* 1010 DR PCoffset9 LDR* 0110 DR BaseR offset6 LEA* 1110 DR PCoffset9 NOT* 1001 DR SR 111111 RET 1100 00 111 000000 RTI 1000 000000000000 ST 0011 SR PCoffset9 STI 1011 SR PCoffset9 STR 0111 SR BaseR offset6 TRAP 1111 0000 trapvect8 reserved 1101
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
8085 Microprocessor
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,