Logically NAND 1234h with 7856h and give the 16-bit answer in binary.
how to do it? Can you explain?
Assembly language?
Re: Assembly language?
1234H -> 0001001000110100nkeung wrote:Logically NAND 1234h with 7856h and give the 16-bit answer in binary.
how to do it? Can you explain?
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.