CS401-Assembly language Programming Assignment 2

CS401-Assembly language Programming Assignment 2

Question: (15 Marks)

Write a TSR program that will print the first letter of your name on the screen. The letter will be printed when you will press that letter on the keyboard and how many times it will be printed depends on the last digit of your VU/ID
CS401-Assembly language Programming Assignment 2 #Explaination

Let’s say your name is Muhammad Khan, and your VUID is BC13212343. You will write code in
such a way that if you press M then M will be printed on the screen, nine times
(which is the last digit of VUID)
As another example, let’s say your name is Ali Amjad, and your VUID is BC12138947. You will write code in such a way that if you press A then A will be printed on the screen, one time (which is the last digit of VUID)
If the last digit of your VU/ID is zero, then you’ll print the first letter of your name ten times
You will use DOSBox to compile your code
Keep the name of the assembly file according to the last eight digits of your VU/ID. For example, if your VUID is BC12123234, you will keep the name of the assembly code file as 23456789.asm

CS401-Assembly language Programming Assignment 2 #Submit

What to submit:

Your solution must be in a single Word file containing the following:

1) Complete code written in Word file

2) the First screenshot that will show the command to compile the code
3) the Second screenshot will show the final output

Download Now

Leave a Comment