CS401 Assignment No 2 Solution 2021

Download Solved Assignments Of Computer Science and Information Technology
User avatar
Ali Raza Tawary
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Posts: 321
Joined: Fri Dec 22, 2017 8:10 am
Location: Kamalia
Gender: Male
Degree Program: MCS
Contact:
Status: Offline

Achievements

Unread post Thu Jun 03, 2021 2:14 pm

Cs401 ass 2 solution
Program:
org 100h
mov bx,num
mov di,1
mov si,0
mov dx,0
mov ax,0
mov cx,8
outer:
mov ax,[bx+di]
mov dx,di
inner:
add bx,dx
sub bx,1
cmp [bx],ax
jl skip
mov si,[bx]
mov [bx+1],si
sub bx,dx
add bx,1
sub dx,1
jnz inner
skip:
sub bx,dx
add bx,1
mov [bx+di],ax
add di,1
sub cx,1
jnz outer
mov bx,num
mov cx,9
mov ax,0
loop1:
add ax,[bx]
add bx,1
sub cx,1
jnz loop1
mov [sum],ax
num: db 2,0,0,2,0,1,6,0,2
sum: db 0
ret
Image
User avatar
Ali Raza Tawary
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
Posts: 321
Joined: Fri Dec 22, 2017 8:10 am
Location: Kamalia
Gender: Male
Degree Program: MCS
Contact:
Status: Offline

Achievements

Unread post Thu Jun 03, 2021 2:16 pm

Image
Post Reply

Last 10 Members Who Visited This Topic

User avatar Bc1702 (1), User avatar Sumyya_shareef (1), User avatar M Saif (2), User avatar Noor (1), User avatar Muzammil wahla (1), User avatar Ali Raza Tawary (4)

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest