What happens if you divide by 0 on a minecraft computer? Sorry random question was just watching you ALU tutorial and it crossed my mind.
you get the largest number possible (if it is 4 bit, you will get 1111(in binary)) and an overflow error from the divider (if it supports this). at least using the "2D adder grid" design.
Ouch :/ I'm not an expert in making tutorials, but I suppose planning the videos far ahead could make the actual recording easier. By "rubbish", do you mean lots of mistakes or something like that?
yea, kind of... I spent half an hour trying to find the problems, turns out I made the computer TOO simple (I implemented no debugging equipment and the RAM is far to small)
DON'T LET THIS THREAD DIE! These are really good tutorials and I hope you will continue to make more. I'm currently working on my own ALU right now using your instructions, and RedPower.
P.S. I was too lazy to actualy make an adder, so I made a truth table instead using redpower array, It goes through each combination to check if the output is 1 or 0, then it checks again to see if it's 10 (or 11) or 0(or1).
Also, I'm wondering, does adding multiples of the same function to the ALU make it any faster or able to compute more things at once?
have a look at the way i built this adder/subtractor :smile.gif:
THE LINK :biggrin.gif:
if you look closely you can see it from the pictures
EDIT: nevermind.. i said it backwards -.- invert the carry out and nand the carry in, sorry
If you divide by zero you get the wrong answer. To put it in a simple context.
1. fraps
2. single player commands, or SPC
you get the largest number possible (if it is 4 bit, you will get 1111(in binary)) and an overflow error from the divider (if it supports this). at least using the "2D adder grid" design.
that explains a bit! although inverting input and output is more compact, and much easier to understand.
whops! typo! was meant to be 1111 in binary.
I actually recorded it already, I just epically failed. tell me what to do, since I kind of have a completely rubbish 1 hour long recording here.
yea, kind of... I spent half an hour trying to find the problems, turns out I made the computer TOO simple (I implemented no debugging equipment and the RAM is far to small)
You are amazing!
- Squarest of the Dogs
P.S. I was too lazy to actualy make an adder, so I made a truth table instead using redpower array, It goes through each combination to check if the output is 1 or 0, then it checks again to see if it's 10 (or 11) or 0(or1).
Also, I'm wondering, does adding multiples of the same function to the ALU make it any faster or able to compute more things at once?