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 2023

Rating
-
Sold
6
Pages
5
Grade
A+
Uploaded on
11-07-2023
Written in
2022/2023

COS2621 Assignment 2 2023 Complete solutions plus Assembly language complete code for Question 2. Write a program in assembly language to read a number entered by the user. The program should display an enlarged version of a given number on the screen. The program should do the following: Clear the screen and change the screen colour to yellow on blue. Change the cursor position to row 10, column 0.5 Prompt the user to key in an upper case letter (A - E). Read the letter from the keyboard. Test whether the number is in range (A,…, E). Display an error message if the letter is out of range and terminate the program. Display an enlarged version of the letter on the screen

Show more Read less









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

Document information

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

Content preview

For Assistance with other modules
Whatsapp +27682021794
www.myassignments.co.za




COS2621
Assignment 02
2023


Due date
26 September 2023,
11:00 PM
UNIQUE NUMBER: 279444

, QUESTION 1
(a) What values do the following instructions load into the
accumulator?
LOAD IMMEDIATE 300 Load immediate means that the value that should be loaded
is part of the instruction and therefore it is immediately available. The value 300 will
be stored in the accumulator.

LOAD DIRECT 320 Load direct means that the address of the operand is given in the
instruction. Address 320 contains the value 305, therefore 305 will be loaded into the
accumulator.

LOAD INDIRECT 325 Load indirect means that the address of the address of the
operand is part of the instruction. Address 325 contains 300, therefore 300 is the
address of the operand. Address 300 contains the value 320, therefore 320 will be
loaded into the accumulator.

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.
MyAssignments My Assignments
View profile
Follow You need to be logged in order to follow users or courses
Sold
171
Member since
4 year
Number of followers
144
Documents
38
Last sold
4 months ago
My Assignments

3,8

21 reviews

5
11
4
3
3
2
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 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