Advertisement

Solution of Assambly languge cs401 fall 2009 3rd assignment

[org 0x0100]

mov ax , 1001100110011001b
mov bx , 0
mov dx , 0
mov bx , ax
and bx , 0011001100110011b
rol bx , 2


mov dx , ax
and dx , 1100110011001100b
ror dx , 2

mov cx , 0
mov cx , bx
or cx , dx
mov ax, cx

end: mov ax, 4c00h
int 21h

so be happy
1 Response
  1. Anonymous Says:

    aray rabeel yaar, kuun marwany lagy ho sub ho yar
    solution to modify kr latay yar

    yeh tu nibble swap nai kr rha yar

    yeh to within each nibble every two bits swap kr rha ha brother

    aamir