How does a computer work if the value is greater?

I understand basic binary logic and how to do basic addition, subtraction, etc. I understand that each of the characters in this text is simply a binary number representing an encoding number. The numbers really mean nothing to the computer. I am confused, however, about how the computer works, that the number is bigger than the other. what does he do at the bit level?

+3
source share
5 answers

If you have two numbers, you can compare each bit, from the most significant to the least significant, using a 1-bit comparator gateway:

eComparator gate

Of course, there are n-bit gate comparators and are described later here .

+10
source

, , ( - aka " " ) .

0

, add/subtract, .

, , , .

- , , , , .

: http://www.osdata.com/topic/language/asm/intarith.htm

0

, , , , "1", .

Big-Endian :

A: 0010 1101 B: 0010 1010

, A , B 6- (), , - B.

, .

0

All Articles