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

COS2621 ASSIGNMENT 1 SOLUTIONS 2022

Rating
-
Sold
21
Pages
11
Grade
A+
Uploaded on
11-05-2022
Written in
2022/2023

COS2621 ASSIGNMENT 1 SOLUTIONS 2022

Content preview

COS2621 ASSIGNMENT 1 SOLUTIONS 2022

QUESTION 1

(a) The following table reflects the memory contents of a part of memory in a oneaddress machine
with an accumulator




What values do the following instructions load into the accumulator?

LOAD IMMEDIATE 20

LOAD IMMEDIATE 20: Immediate addressing. The value to be used forms part of the

instruction. In this instance, the value 20 will be loaded into the accumulator.

LOAD DIRECT 20

LOAD DIRECT 20: Direct addressing. The instruction contains the address where the value

is to found. Address 20 contains the value 30, thus the value 30 will be loaded into the

accumulator.

LOAD INDIRECT 20

LOAD INDIRECT 20: Indirect addressing. The instruction contains the address where the

address of the value to be used, is to be found. Address 20 contains the address of the value

to be used, ie address 30. Address 30 contains 40, thus the value 40 will be loaded into the

accumulator.


(b) Give examples of Intel x86 instructions in which the following addressing modes are used:

Immediate addressing : Immediate addressing mov ax,23



Direct addressing : Direct addressing mov ax,[a]

, Stack addressing : Stack addressing push ax (pop ax)



Indexed addressing : Indexed addressing mov ax,[si] (mov [di],ax)



Base-addressing: Base‐addressing mov ax,[bp] (mov ax,[bx])



Register indirect addressing: Register indirect addressing mov ax,[bx]



OR




QUESTION 2

Question 2 [11]

(a) Briefly discuss the concepts of

Document information

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

Subjects

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
5 months ago

3,7

359 reviews

5
145
4
83
3
56
2
28
1
47

Trending documents

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