Page 1 of 1
Assembly language?
Posted: Mon Jan 22, 2007 10:14 pm
by nkeung
Logically NAND 1234h with 7856h and give the 16-bit answer in binary.
how to do it? Can you explain?
Re: Assembly language?
Posted: Mon Jan 22, 2007 11:22 pm
by Tyler
nkeung wrote:Logically NAND 1234h with 7856h and give the 16-bit answer in binary.
how to do it? Can you explain?
1234H -> 0001001000110100
7856H -> 0111100001010110
AND -> 0001000000010100
NOT -> 1110111111101011
Each digit in a Hexedecimal number represents the 4 binary digits in the same place in the binary equivelent. So to turn a Hex value to Binary, convert each digit one by one and replace it with a 4 digit binary equivelant.
Then you simply Logically AND (Equals positive when both inp0uts are positive) and NOT (Opposite) the results.