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

COS2621 Assignment 2 solution 2025

Rating
5.0
(1)
Sold
3
Pages
6
Uploaded on
13-08-2025
Written in
2025/2026

COS2621 Assignment 2

Institution
Course









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

Written for

Institution
Course

Document information

Uploaded on
August 13, 2025
Number of pages
6
Written in
2025/2026
Type
Other
Person
Unknown

Subjects

Content preview

COS2621 Assignment 2 2025




Ready to Submit. Instructions to run the code are also included; copy and paste
into CodeGrade

, Output




Question 1
(a) Memory Addressing Modes
LOAD IMMEDIATE 20: The immediate addressing mode takes the operand value (20)
directly from the instruction and places it into the accumulator. So 20 will be loaded.
LOAD DIRECT 20: Direct addressing uses the operand (20) as a memory address. The
processor retrieves the value stored at memory location 20, which contains 30. So 30 will
be loaded.
LOAD INDIRECT 20: Indirect addressing treats the operand (20) as a pointer to another
memory address. First, it reads the value at address 20 which is 30, then uses that value as
the actual memory address to access. So the content at address 30 is 40.

(b) Intel x86 Addressing Mode Examples
Addressing Mode Instruction
Immediate MOV EAX, 25
Direct MOV EAX, [2000h]

Reviews from verified buyers

Showing all reviews
3 months ago

It is very informative very detailed

5.0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

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.
CrystalIndigo University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
486
Member since
5 year
Number of followers
226
Documents
73
Last sold
1 month ago
CrystalIndigo Solutions

providing all solutions to all computer science modules

4.1

51 reviews

5
27
4
13
3
6
2
1
1
4

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 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

Frequently asked questions