Dear VU Students here you read and download CS401 Assignment No.1 Solution Fall 2018. Our Blog team Provide Just Idea Solution. File has been added below in .docx format. We recommend you to read complete post before downloading Solution File. You Also Like our Facebook Page, Join Facebook Group, follow on Google+ and Subscribe our YouTube Channel. Please Share it with your Friends. Thank you.
jmp start ; jump to start label
size: dw 9 ; num of digit in id
mov cx , [size] ; init cx with id digit
add cx , [size] ; add digit_id into cx
mov di , si ; put si into di
add word di ,2 ; add 2 into di
mov bx , si ; put si into bx
mov ax , [arr+di] ; 1st item into ax
mov dx , [arr+bx] ; 2nd item inot bx
jl relocate ; jump to relocate
add di , 2 ; advance to next num
relocate: ; relocation starts
mov ax , [arr+si] ; x into ax
mov dx , [arr+bx] ; y into dx
mov [arr+si] , dx ; x = y
mov [arr+bx] , ax ; y = x
add word si ,2 ; add 2 into si
mov ax , 0x4c00 ; terminate
Download