how to add 2 8bits binary number by using VB ? help me pls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • c2h
    New Member
    • Nov 2006
    • 8

    how to add 2 8bits binary number by using VB ? help me pls

    The question is :

    Consider a machine that perform calculation 4 bits a time. 8 bits 2's complement numbers can be added by adding the four least significant bits, followed by the four most significant bits. The leftmost bit is used for the sign, as usual. With 8 bits for each number, add -4 and -6, using 4 bit binary 2's complement arithmetic. Did over-flow occur ? Did carry occur ? Verify your numerical result.
Working...