Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following assembly code written for the IAS computer. Each memory word contains either a 40-bit constant or two 20-bit (left-Land right-R) instructions. Two

image text in transcribed

Consider the following assembly code written for the IAS computer. Each memory word contains either a 40-bit constant or two 20-bit (left-Land right-R) instructions. Two 30-word integer data arrays, A(1) and B(1), start at memory locations 50 and 100 respectively. Answer the following questions regarding the assembly program. Memory Address 0 1 2 3 4 5L SR 6L HEBSF3389595 Instruction / Data Comment value 0 Constant N, initialized to O 1 Constant, set to 1 6 Constant, set to 6 29 Constant, set to 29 50 Constant, set to 50 LOAD M(50) Transfer A(O) from Memory address 50 to AC LSH Multiply AC by 2 LSH LSH ADD M(2) Place AC + [value from Memory address 2) in AC STOR M(100) Transfer AC to B(O) at Memory address 100 LOAD M(O) Load N into AC SUB M(3) Place N-29 in AC JUMP +M(13, 20:39) Test AC, if N-29 >= 0 then jump to inst 13R LOAD M(O) Load N into AC ADD M(1) Increment AC by 1 STOR M(O) Update N in Memory address o ADD M(4) STOR M(5, 8:19) Modify memory address/operand of instruction SL ADD M(4) STOR M(7, 28:39) Modify memory address/operand of instruction 7R JUMP M(5, 0:19) HALT 9R 10L 10R 11L 11R 12L 12R 13L 13R

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago