Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 Consider the instruction formats of the basic computer shown in Fig. 5-5 and the list of instructions given in Table 5-2. For each

image text in transcribed

Question 2 Consider the instruction formats of the basic computer shown in Fig. 5-5 and the list of instructions given in Table 5-2. For each of the following 16-bit instructions, give the equivalent four-digit hexadecimal code and explain in your own words what it is that the instruction is going to perform. a. 0001 0000 0010 0100 b. 1011 0001 0010 0100 c. 0111 0000 0010 0000 Assignment #4 Page 2 of 7 CMP 334 Figure 5-5 Basic computer instruction formats. 0 15 14 12 11 1 Opcode Address (Opcode = 000 through 110) 15 (a) Memory - reference instruction 12 11 1 Register operation O 0 (Opcode - 111. 10) 15 (b) Register - reference instruction 12 11 1 1/0 operation O 1 1 1 (Opcode - 111. 1-1) (e) Input-output instruction TABLE 5-2 Basic Computer Instructions Hexadecimal code I=0 Description Symbol I = 1 AND ADD LDA STA BUN BSA ISZ Oxxx 1xxx 2xxx 3xxx 4xxx 5xxx 6xxx 8xxx 9xxx Axxx Bxxx Cxxx Dxxx Exxx AND memory word to AC Add memory word to AC Load memory word to AC Store content of AC in memory Branch unconditionally Branch and save return address Increment and skip if zero CLA CLE CMA CME CIR CIL INC SPA SNA SZA SZE HLT 7800 7400 7200 7100 7080 7040 7020 7010 7008 7004 7002 7001 Clear AC Clear E Complement AC Complement E Circulate right AC and E Circulate left AC and E Increment AC Skip next instruction if AC positive Skip next instruction if AC negative Skip next instruction if AC zero Skip next instruction if E is O Halt computer INP OUT SKI SKO ION IOF F800 F400 F200 F100 F080 F040 Input character to AC Output character from AC Skip on input flag Skip on output flag Interrupt on Interrupt off Question 2 Consider the instruction formats of the basic computer shown in Fig. 5-5 and the list of instructions given in Table 5-2. For each of the following 16-bit instructions, give the equivalent four-digit hexadecimal code and explain in your own words what it is that the instruction is going to perform. a. 0001 0000 0010 0100 b. 1011 0001 0010 0100 c. 0111 0000 0010 0000 Assignment #4 Page 2 of 7 CMP 334 Figure 5-5 Basic computer instruction formats. 0 15 14 12 11 1 Opcode Address (Opcode = 000 through 110) 15 (a) Memory - reference instruction 12 11 1 Register operation O 0 (Opcode - 111. 10) 15 (b) Register - reference instruction 12 11 1 1/0 operation O 1 1 1 (Opcode - 111. 1-1) (e) Input-output instruction TABLE 5-2 Basic Computer Instructions Hexadecimal code I=0 Description Symbol I = 1 AND ADD LDA STA BUN BSA ISZ Oxxx 1xxx 2xxx 3xxx 4xxx 5xxx 6xxx 8xxx 9xxx Axxx Bxxx Cxxx Dxxx Exxx AND memory word to AC Add memory word to AC Load memory word to AC Store content of AC in memory Branch unconditionally Branch and save return address Increment and skip if zero CLA CLE CMA CME CIR CIL INC SPA SNA SZA SZE HLT 7800 7400 7200 7100 7080 7040 7020 7010 7008 7004 7002 7001 Clear AC Clear E Complement AC Complement E Circulate right AC and E Circulate left AC and E Increment AC Skip next instruction if AC positive Skip next instruction if AC negative Skip next instruction if AC zero Skip next instruction if E is O Halt computer INP OUT SKI SKO ION IOF F800 F400 F200 F100 F080 F040 Input character to AC Output character from AC Skip on input flag Skip on output flag Interrupt on Interrupt off

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial And Managerial Accounting

Authors: Robert Meigs Jan Williams, Sue Haka, Mark S Bettner

16th Edition

0077557344, 978-0077557348

Students also viewed these Accounting questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago