Latest Post

6/recent/ticker-posts

CS401 Assignment 1 Solution Fall 2022

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.

Code File 103kb

Post a Comment

23 Comments

  1. Download option nhi hota some files ka

    ReplyDelete
    Replies
    1. option hota hai but red line mai kch typing ki gai hai osko follow krne k bad email pr code bej dia jaiga

      Delete