100's place 10's place 1's place
0 0 1 = 001
0 1 0 = 010
1 0 0 = 100
100's place 10's place 1's place
3 8 0 = 3*100 + 8*10 + 0*1 = 380
0 4 1 = 0*100 + 4*10 + 1*1 = 41
8's place 4's place 2's place 1's place 0 1 0 0 = 0*8 + 1*4 + 0*2 + 0*1 = 4 1 1 1 1 = 1*8 + 1*4 + 1*2 + 1*1 = 15
Binary Decimal 00000000 = 0 00001111 = 15 00010000 = 16 10101010 = 170 11111111 = 255
Decimal Hex
0 = 0
1 = 1
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
16's place 1's place
6 A = 6*16 + A(10)*1 = 106
1 0 = 1*16 + 0*1 = 16
Binary 01101010
split | |
in half / \
0110 1010
into | |
hex 6 A
| |
put \ /
back 6A
01101010 = 6A
Binary Hex Decimal 00000000 = 00 = 0 00001111 = 0F = 15 00010000 = 10 = 16 10101010 = AA = 170 11111111 = FF = 255
Answering any and all questions related to video game collecting. Guaranteed true and honest answers from a man with nearly 20 years in the community. Prices for these answers vary depending on the question. For all inquiries, please PM me.
Proud replier of post #1000 in the infamous Joel thread
gauauu: look, we all paid $10K at some point in our lives for the privilege of hanging out with Kevin
N, check out my binary/hex and such tutorial. They apply to all programming and I go into great depth. We need to maybe put this on the main site here somehow over time, it would be a good idea.
http://www.smstributes.co.uk/view_article.asp?articleid=40
The first three sections (up through binary math), will tell you all you need to know. There are some SMS references in there, but just to illustrate a bit. Also, buns, maybe we should put together an assembly tutorial starting from real basics. The instruction sets should be illustrated very slowly in my opinion, getting to how they function later, showing 'programs' that essentially look like this:
ld bc, mpdand
ld b, 8
ld c, 0
and so forth, showing essentially fake programs so users learn how to work with fake data before moving on to the real deal. Again, not trying to say anything bad, you've done some awesome work here, I think it would be good if it was fleshed out more.
gauauu: look, we all paid $10K at some point in our lives for the privilege of hanging out with Kevin