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?
If you have two numbers, you can compare each bit, from the most significant to the least significant, using a 1-bit comparator gateway:
Of course, there are n-bit gate comparators and are described later here .
, , ( - aka " " ) .
, 0 ( , 1 0, 2 ).
http://academic.evergreen.edu/projects/biophysics/technotes/program/2s_comp.htm
, add/subtract, .
, , , .
- , , , , .
: http://www.osdata.com/topic/language/asm/intarith.htm
, , , , "1", .
Big-Endian :
A: 0010 1101 B: 0010 1010
, A , B 6- (), , - B.
, .