CS401 Assignment 1 Solution Fall 2022: Today we are sharing with CS401 (Computer Architecture and Assembly Language Programming) semester Fall 2022. Before creating your assignment file please read the instructions carefully and follow all the rules. It should be clear that your assignment would not get any credit.
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date. If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.
Question:
Write an assembly language program to add the number of digits of your VUID in
pairs of 3. Suppose your VUID numbers are 123 456 789, all these numbers are
added in pairs of three and converted to 6 15 24, and then find the maximum
from these three numbers here the maximum number is 24 so the number 24 should
be shown in the memory.
Solutions:
[org 0x0100]
jmp start
arr1: dw 0
start:
mov ax, 2
mov bx, 1
add ax, bx
mov bx, 0
add ax, bx
mov [arr1+0],ax
mov ax, 2
mov bx, 0
add ax, bx
mov bx, 2
add ax, bx
mov [arr1+2],ax
mov ax, 8
mov bx, 9
add ax, bx
mov bx, 7
add ax, bx
mov [arr1+4],ax
mov bx, 0
mov ax, 0
mov ax, [arr1+bx]
peakvalue:
cmp bx, 6
je fin
cmp ax, [arr1+bx]
jge peakloop
mov ax, [arr1+bx]
peakloop:
add bx, 2
jmp peakvalue
fin:
MOV AX, 4C00h
INT 21h
Requirements:
- The following are required in a single MS Word document.
- Assembly language program (Code).
- Screenshot of AFD debugger at the start of the program.
- Screenshot of AFD debugger showing the maximum number.
Cs401 assignment 1 solution fall 2022, cs401 assignment solution
2022, cs401 assignment solution fall, cs401 assignment code download.
23 Comments
Done
ReplyDeleteDownload option nhi hota some files ka
ReplyDeleteoption hota hai but red line mai kch typing ki gai hai osko follow krne k bad email pr code bej dia jaiga
Deletezm538105@gmail.com
DeleteDone
Deletedone
ReplyDeleteYour Email?
DeleteThis comment has been removed by the author.
Deletehasnainijaz403@gmail.com
ReplyDeleteDone
ReplyDeleteShare Your Email
Deletebc200413204@vu.edu.pk
ReplyDeleteCheck Your mail
DeleteDone
ReplyDeletenajamgul786@gmail.com
ReplyDeletecheck your mail
Deletedone, ehtissham@gmail.com
ReplyDeletecheck your mail
Deleteshare your email
ReplyDeletedone, damingthegair@gmail.com
ReplyDeletecheck your mail
DeleteSorry my mail was: gamingthegair@gmail.com
DeleteHello Admin?
Delete