|
| 11 Sep 2015 11:24 AM |
Ever get tired of Lua? Let's skip the compiler and go right into binary. I will give two numbers and you give me the answer if you were to add the two. It will be on an 8 bit scale so keep in mind if you get something over 255 you might be wrong. Also, it could be negative. Alright scripters, here we go:
01001101 11000000 (Keep in mind for a negative, use two's compliment theory)
Adding those together what do you get?
|
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 11:34 AM |
I have no idea what two's complement is, but assuming they are both positive, it is this:
100001101 |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 11:43 AM |
| It's fake. Not even numbers. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 11:50 AM |
They are numbers?
01001101(97) + 10111111(-64) = 00100001(33) |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 11:51 AM |
"It's fake. Not even numbers." This statement confuses me.
I probably don't know what I'm doing, but here's a wild shot in the dark at two's compliment.
01011001 |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 11:53 AM |
Oh yeah, let me change that end bit. (Since NOT 2 is -3)
01011000 I think that's right? |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2015 02:32 PM |
@jarod 01011000 That is close! it's actually 00100001 |
|
|
| Report Abuse |
|
|
TwoRivers
|
  |
| Joined: 25 Aug 2011 |
| Total Posts: 2821 |
|
|
| 11 Sep 2015 02:42 PM |
i stole limitedhex's look
-TwoRivers/Iterum/100+ accounts |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 03:14 PM |
| Haha, Hex in disguise! Brilliant! |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2015 05:18 PM |
binary is base 2 at the guy who said its not even real numbers
R$1714889 TX16533 http://www.roblox.com/coinman001-item?id=107453514 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Sep 2015 05:20 PM |
This thread is dumb, and so is everybody in it.
Binary in itself is a very simple number system, it is in no way related to Lua. And two's compliment is not specific to binary, making you look even more stupid.
If you think knowing binary will make you understand machine language, you're a moron. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Sep 2015 05:22 PM |
| Oh boy, I should have actually read the post... |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 08:37 PM |
| Lol? Just a simple fun thread and you have to come in like that again. Were you like bullied as a kid or something? Why are you so salty. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Sep 2015 08:39 PM |
Are you an idiot? I just said I assumed before I read. I was expecting something dumb again, like "binary = machine code, if you know binary you know machine code" crap.
77 + (-64) = 13 I hope I counted right |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 08:55 PM |
| You got it right, just saying to chill. There's already few programmers out there, why make enemies with the few? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Sep 2015 08:59 PM |
Because apparently their illiterate.
'Oh boy, I should have actually read the post...' I said that trying to say that my previous post was wrong because I assumed incorrectly. |
|
|
| Report Abuse |
|
|
| |
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 11 Sep 2015 09:05 PM |
| Something in my post wasn't being liked by the filter. hastebin/kefuzacobe |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 09:05 PM |
Actually, what isn't all good is the fact that cnt used the wrong form of there/their/they're.
Although, he could easily counter this statement by saying he did that intentionally, but there is no evidence he did.
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 11 Sep 2015 09:11 PM |
| derp, i think i was considering my limits backwards. it should be negatives subtract one, not positives. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2015 09:59 PM |
| I still think my last one was right, but I still have no idea what I'm doing. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 11 Sep 2015 10:01 PM |
| You were right, just drop the 9th bit |
|
|
| Report Abuse |
|
|