Assignment#3
Assignment#3
Fall2024 CS Department
Assignment No. 03
30th November 2024
Course Code: EE2003 Course Name: Computer Organization & Assembly Language
Instructor Names: Shoaib Rauf, Kashan, Aashir Mahboob, Atiya, Kariz Kamal , Muhammad Usman,
Nauraiz Subhan
Instructions:
Attempt all the questions.
Don’t share your work, if your submission is matched to any member of your class, both will be
marked 0 straight without asking who shared or who magically copied.
No late submissions will be accepted.
Assignment should be Hand written and a PDF file of scanned copies must be uploaded on GCR.
Max Points: 30
Write an assembly language program to copy the characters of a string to a target string. The characters are
stored in such a way that only a single instance of any character in the string is stored. Initialize a source
string to: "This is the source string".
Vowel Count
a or A = 3 i or I = 4 u or U = 1
e or E = 3 o or O = 2
1
Question 5 [5] Points
Write a procedure named DifferentInputs that returns EAX = 1 if the values of its three input parameters
are all different; otherwise, return with EAX = 0. Use the PROC directive with a parameter list when
declaring the procedure. Create a PROTO declaration for your procedure, and call it five times from a
test program that passes different inputs.