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 14 pages
Exam (elaborations)

COS2621 ASSIGNMENT 2 SOLUTIONS 2022

Document preview thumbnail
Preview 2 out of 14 pages

COS2621 ASSIGNMENT 2 SOLUTIONS 2022

Content preview

COS2621 ASSIGNMENT 2 SOLUTIONS 2022
QUESTION 1
(a) The following table reflects the memory contents of a part of memory in a one address machine with
an accumulato




What values do the following instructions load into the accumulator? LOAD DIRECT 300 LOAD DIRECT 320
LOAD INDIRECT 325
SOLUTIONS
LOAD DIRECT 300: Load direct means that the instruction contains the address of
the operand: The value 325 is stored in address 300, so the value 325 will be stored
in 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.
(b) Give examples of x86 instructions in which the following addressing modes are used: Immediate
addressing Direct addressing Stack addressing Indexed addressing Base-addressing Register indirect
addressing
SOLUTIONS




QUESTION 2

,

Document information

Uploaded on
September 14, 2022
Number of pages
14
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
R309,00

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.
hiltontutorials
3,7
(359)
Sold
1905
Followers
1219
Items
858
Last sold
10 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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