[go: up one dir, main page]

0% found this document useful (0 votes)
35 views2 pages

Individual Assignment 2

This document is an assignment for COSC 204: Organization and Assembly Language at Ahmadu Bello University, detailing instructions for submission and guidelines for plagiarism. Students must answer a specific question based on the last digit of their registration number, using 8086 Assembly Language. The assignment includes ten programming tasks, each requiring different functionalities to be implemented in assembly code.

Uploaded by

prvncex1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

Individual Assignment 2

This document is an assignment for COSC 204: Organization and Assembly Language at Ahmadu Bello University, detailing instructions for submission and guidelines for plagiarism. Students must answer a specific question based on the last digit of their registration number, using 8086 Assembly Language. The assignment includes ten programming tasks, each requiring different functionalities to be implemented in assembly code.

Uploaded by

prvncex1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Ahmadu Bello University, Zaria

Distance Learning Center


COSC 204: Organization and Assembly Language
Individual Assignment II
May 2024 Semester

Date: 10th December, 2024 Submission Deadline: 6th January, 2025


Marks Obtainable: Ten (10)

Instructions:
1. There are 10 questions in total. You are expected to answer the question number that
corresponds to the last digit of your registration number. For example, if your registration
number is U10DLCS10238, then you are to answer question number 8. If your registration
number ends with a zero, you are to answer question number 10. You WILL NOT be
graded if you answer a wrong question.
2. You are expected to use the 8086 ASSEMBLY LANGUAGE that you have learnt in class
only to write your programs.
3. You are required to make your submission in a PDF file. Your submission should contain
a screenshot of the program executing on your PERSONAL COMPUTER, as well as the
source code of the program.
4. PLAGIARISM or COPYING is strictly PROHIBITED. If two or more students
answering the same question are found to have the same submission, the PENALTY is an
outright score of ZERO for those involved.
5. The use of CHATGPT and other AI tools is STRICTLY prohibited and will be treated as
malpractice and plagiarism of the highest order. Not adhering to this will attract a
commensurate PENALTY in addition to a score of ZERO. You are allowed to consult
any external source but DO NOT submit the solutions therein as it is.

COSC 204: Organization and Assembly Language Page 1 of 2


QUESTIONS
1. Write an assembly code that prints the numbers from 1 to 10, 10 times on the screen. Each
sequence of numbers from 1 to 10 should be separated by a space.

2. Write a program that reads four numbers from the keyboard and gives their product as output.

3. Write a program to convert a given string to its uppercase form and prints it.

4. Write a program in x86-64 assembly language that reads a character from the user, and if it's
an uppercase letter, display it.

5. Write an assembly language code to count the number of characters in an input line.

6. Write a program that stores and displays the sum of the series 2 + 6 + 10 + ... + 200 in the EAX
register.

7. Write a program that uses a loop to input signed 32-bit integers from the user and computes
and displays their minimum and maximum values. The program terminates when the user
enters an invalid input.

8. Write a program that reads a string of up to 15 characters and stores it in an array. It should
then convert each lowercase letter to uppercase, leaving every other character unchanged. The
program should output the modified string.

9. Write a program to ask for a name until the user enters END. Print the name each time. When
you are done, print "I am done."

10. Write a program that reads five integers from the user, stores them in an array, and calculates
their product as output.

COSC 204: Organization and Assembly Language Page 2 of 2

You might also like