100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COS2621 ASSIGNMENT 2 SOLUTIONS 2022

Rating
-
Sold
6
Pages
14
Grade
A+
Uploaded on
14-09-2022
Written in
2022/2023

COS2621 ASSIGNMENT 2 SOLUTIONS 2022










Whoops! We can’t load your doc right now. Try again or contact support.

Document information

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

Subjects

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

,

Get to know the seller

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 University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
1905
Member since
6 year
Number of followers
1219
Documents
858
Last sold
2 months ago

3,7

359 reviews

5
145
4
83
3
56
2
28
1
47

Recently viewed by you

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

Frequently asked questions