So no chip manufacturer or producer agreed on some standard definition of what a byte or bit is ? :?
^ That doesn't sound right
Somewhere in the last 20 years (or possibly a wee bit longer) 8 bit bytes became the only size in use.
A "bit" has always meant a
binary dig
it, I believe. I doubt you find any confusion as to what a bit is, though it's possible you could encounter it used in ways you might not expect (eg. see non-integer numbers bits in Information Theory)
Off the top of my head I recall, a "byte" might have been originally defined as the smallest size chunk of bits that a device could address or work with, if that helps you to understand the original (not necessarily 8 bit) usage better
As 8 bit bytes did definitely become the de facto standard a long time ago - I guess the resources on the 8085 architecture might be rather old, and if not I guess detailed chip documentation is one place where you might want to expect the documentation to spell out low-level details such as that a byte should be taken as the now conventional 8 bits.
A related concept you'll encounter might be that of a "word"... unlike bytes the size of a word does differ between architectures, and is a little messy as it sometimes has it's original meaning (being something like the size that a processor wants to deal with, eg. a 16bit processor might be said to have 16bit words, while a 32bit processor would have 32bit words) except on the x86 family where it's legacy use on the 16bit processors pretty much cemented the term as being 16bits ever more (so on the x86 family, 32bits are double words or "dwords", and 64bits are quad words or "qword").
Okay I see, so it works just like decimal math when dealing with negative numbers instead we're using two's power notation ? I remember binary being anything to the second power example 1^2 is 2 and 2 ^ 2 is 4 and 4 ^ 2 is eight and so on ...
I hope you're not confusing twos compliment notation with the powers of two?!
The are not the same at all...
The powers of two in binary are the equivalents of the powers of 10 in decimal (and the powers of 16 in hexadecimal). They are the numbers where you start need to use an extra digit
eg.
Binary:
0, 1,
10, 11,
100, 101, 110, 111,
1000 ...
Decimal:
0, 1, 2, 3 4, ... 9,
10, 11, 12, ... 99,
100, 101 ...
Hex:
0, 1, 2, 3, ... 9, A, B, ... E, F,
10, 11, 12... 1F, 2F ... FF,
100
(Hopefully you see the pattern/s)
Note that the if the power of the base tells you when you will need another digit, and also the number of values you can represent with a given number of digits provided you include 0; while the power of the base minus one gives you the highest integer you can represent with a number of digits (eg. 10 to the 2nd power minus 1 is 99, the largest 2 digit decimal integer is 99)
Now that's out of the way twos compliment is how we store negative numbers in a tricky way... hmmm lets imagine how a twos compliment-like representation might be used in decimal...
OK say we have a fixed number of decimal digits, I'll use 3. So we can represent the positive numbers 0-999. Now imagine we've already got already simple processor that handles addition and subtraction of our 3 digit decimals and but we want to extend our processor to handle negative numbers. We could duplicate the circuits that handle positive integers but we don't want to (eg. it'll increase cost) can we cheat and use what we have somehow?
What if we pretend that 999 is -1, and 500 is -501, but the numbers 0 - 499 retain their existing meaning?
998 (-2) + 7 (+7) = 1005 (+5)
but we only have 3 digits so the upper digit is lost meaning the answer is just 5. So, as 998 + 7 = 5 (if we lose the 4th digit because our 3 digit decimal processor truncates it) and -2 + +7 = 5, then I hope you can see that our mapping works and means we don't have to add circuits to handle addition or subtraction different for signed numbers
!
...Next is on my complicated things to learn is how Boolean algebra logic applies to gates and etc. I remember a little from reading a couple of old books on how electronics work that I borrowed from my dad. Transistors Transistor Logic is kind of fun actually
Awesome
! You might enjoy reading up on how binary addition/subtraction can be implemented in hardware.