Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 7 pages
Other

COS2621 Assignment 2 2022 Solution

Document preview thumbnail
Preview 2 out of 7 pages

Solutions to the Assignment for COS2621. Assembly code included in the document.

Content preview

COS2621 – COMPUTER ORGANIZATION
ASSIGNMENT 2 SOLUTIONS
2022

, Discussion of assignment 02


All the questions were not marked in detail. You received credit for the questions for which you
submitted a reasonable effort.

Question 1

(a) The following table reflects the memory contents of a part of memory in a one-
address machine with an accumulator:



Address Contents

300 320

305 310

310 310

315 325

320 305

325 300



What values do the following instructions load into the accumulator?

LOAD IMMEDIATE 300: Load immediate means that the operand is part of the
instruction. The value 300 will be loaded into the accumulator.

LOAD DIRECT 320: Load direct means that the instruction contains the address of the
operand: The value 300 is stored in address 320, so the value 300 will be stored in the
accumulator.

LOAD INDIRECT 325: Load indirect means that the address that contains the address of the
Operand forms part of the instruction. Therefore, address 325 contains the address of the
operand, ie the address of the operand is 300. Address 300 contains 320, thus the value
320 will be stored in the accumulator.




2

Connected book
 image
Publisher: Unknown ISBN: 9781292096858 Edition: 1

Document information

Uploaded on
August 8, 2022
Number of pages
7
Written in
2022/2023
Type
Other
Person
Unknown
$12.73

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
StudyWellNotes
5.0
(1)
Sold
42
Followers
31
Items
0
Last sold
3 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions