Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Analyze the following program. Examine the instructions one by one, inspecting the values from the AC and the memory Write a simple pseudo code

image text in transcribed

1. Analyze the following program. Examine the instructions one by one, inspecting the values from the AC and the memory Write a simple pseudo code to describe the program. stored at the memory addresses A0 - A3 (hex) to understand what the program d oes. 2. Give the following names to the variables Address Name of variable Counter A2 A3 Note that X, Y and Z are pointers. 3. 4. What does calculate this program? Why is practical to use in this program memory - reference instructions with indirect addressing in other words, instructions which use pointers)? % PROGRAM IS IN the RANGE Of ADDRESSES 00 TO 7F % 00:04; % LDA (direct) % 01: a0; % from address a0 % 02:42; % CNA 03:08; % STA (direct) % 04: a0; % AC to address a0 % 05:20; % ISZ (direct) % 06: a0; % counter stored at a0 % 07:10; % BUN (direct) % 08:20; % to address 20 % 09:60; % HLT 20:84; % LDA (indirect) % 21: al; % the number pointed to by the memory location a1 % 22:82; % ADD (indirect) % 23: a2; % the number pointed to by the memory location a2 % 24:88; % STA (indirect) % 25: a3; % to the memory location pointed to by a3 % 26:04; % LDA (direct) % 27: a1; % from the address a1 % 28:50; % Inc 29:08; % STA (direct) % 2a: a1; % AC to the memory address a1 % 2b:50; % Inc % 2c: 08; % STA (direct) % 2d: a2 ; % store AC to the memory address a2 % 2e: 50; % Inc 2f: 08; % STA (direct) % 30: a3; % send AC to the memory address a3 % 31:10; % BUN (direct) % 32:05; % to the memory address 05 % 80:01; % DATA ARE FOUND AT ADDRESSES 80 TOFF % 81: 01; a0: 0a; % loop counter, which will be done 10 times % al: 80; % pointer to the first number to be added % a2: 81; % pointer to the second number to be added % a3: 82 % pointer to memory location where result will be stored %

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions