Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS401 assignment no 2 spring 2011
#21
dear kur bhi dou upload ya app wait kr rahy hou k koi or banay or app uplod kr dou???
Reply
#22
Confusedmileys62:Confusedmileys52:Confusedmileys74:Confusedmileys53:
Reply
#23
[color="rgb(65, 105, 225)"][size="7"][size="7"]should i do it again i have solved the assignment no.2 as well................[/size][/size][/color]
Reply
#24
[org 0x0100]

jmp start

num: db 117 ; 8bit number
NumMask: db 255
start: mov bl, [num] ; Copies 117 to bx register
not bl ; Inverting number to get 1’s complement using NOT
add bl,1 ; adding 1 to 1’s complement to get 2’s complement

; Inverting bits using XOR
mov dl, [num]
xor dl, [NumMask]
add dl, 1

mov ax, 0x4c00 ; terminate program
int 0x21

Another solution of this question is

[org 0x100]
jmp start
number: dw 13

start:
mov ax,[number]
xor ax,0xffff
inc ax
mov ax,0x4c00
int 21h
Reply
#25
plz post your idea shifty plzzzzzz
Reply
#26
solution file attached
[Image: cs402%2Bspring%2B2011%2Bvuhelp.JPG]
Reply
#27
o0o0o0 g0o0o0d dear keep it upppppppp
Reply
#28
Mistakes in the solution
Reply
#29
what kind of mistake you discover please explain shifty i think you are also shifty mannars like today
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need ACC501 - Business Finance Assignment No 2 Solution. Umar Abbas 2 4,249 02-07-2014, 08:23 PM
Last Post: Umar Abbas
  sta301 assignment 4 27 jun bc110200090 6 3,573 01-26-2013, 02:05 AM
Last Post: Vuhelper
  cs506 2nd assignment millee 0 2,655 12-04-2012, 11:30 PM
Last Post: millee
  cs506 2nd Assignment Neelam Ahmad 5 3,123 12-04-2012, 11:24 PM
Last Post: Vuhelper
  CS 504 Assignment 2 need help ommmi 24 11,415 11-27-2012, 04:59 AM
Last Post: Xpert
  Mcs cs402 1st assignment chahat4all 2 3,764 11-01-2012, 11:11 PM
Last Post: chahat4all
  eng201 assignment 4 due date 4/7/2012 bc110200090 6 2,615 07-03-2012, 03:51 PM
Last Post: bc110200090
  need CS304 4th assignment shazma 0 2,053 06-26-2012, 12:48 PM
Last Post: shazma
  sta301 assignment 4 solution vudecent 0 2,393 06-25-2012, 01:51 AM
Last Post: vudecent
  Required Soluction for 3rd Assignment of CS101 bc120200426 1 2,134 06-14-2012, 04:13 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)