Hi everyone, today we're going to talk about binary interpretation
A lot of times we talk about binary and that 1 or 0 is the only thing the VLC or computer can understand
That actually relates to our inputs and outputs of our VLC. So they're either on or off
Now if we look at the VLC addresses, we can take a look at that whole word and the way we interpret it
We can use binary code in decimal, we can use hexadecimal, or we can use ASCII, American Standard Order of Information Interchange
Now the binary terminology, bit 1 and 0, we have 4 bits, which holds a nibble or a digit
We have 8 bits, which is 2 nibbles, which is a byte
We have 16 bits, 4 nibbles, 2 bytes, or 1 word. We have 32 bits, 8 nibbles, 4 bytes, which is a double word
This really will depend on which processor you are using. Now if we look at what we did last time, when we broke down the hex and binary
let's take the maximum that we can have for a digit, which is 4 bits, which is 1, 1, 1, 1, for the basis 2
If we break that down, and remember we used the parentheses because there's two different characters that we can use in that location
So the maximum we can have is the number 15. So really, that digit can go from anywhere from 0, 0, 0, 0 in binary
to 1, 1, 1, 1 in binary, which is 0 to 15
So we break this all down, and we're looking to get a number
and the number goes 0 to 15, but we really can't use two digits, we only need one
So we switch to some letters. So we go for 10, we use the value A
For 11, we use B, C, D, E, and F. We have the 15
Now for negative numbers, what we use is the most significant bit as either 0 or 1
So you can see it's signed or unsigned, or negative or non-negative
and they are the numbers, how we get those. Now ASCII, ASCII is based on 8 bits or 2 hexes
and it really represents everything that we can display on a keyboard, for example
So if we have a letter A in hex 41, in binary it would be 0, 1, 0, 0, 0, 0, 0, 1
A small letter A is 61, which is 61 in hex. A letter 1, or the number 1, is 31 in hex, and the equal sign is 3D
If we go to the website, you will actually see that what we have is the table
and this table actually shows us all the different things we can have on our keyboard
that then dictates, every time you hit a key, you're actually sending out 8 bits of information out to the computer
Now another way we can take a look is if you have your calculator, we can open the calculator
we'll go to programmer, and as you can see, if I write in hex value, it will show me the binary
or vice versa, if I want. So let's take a look at this alphabetical, which is 64, which is 40 in hex, so we just type in 40
and you can see what the binary column of 8 bits will be
Okay, that's it for now. Thanks for listening. www.mooji.org