I'm currently trying to make a computer in powdertoy and i understand most of the simple electronics in this game like logic gates and memory and stuff but after looking around I havent been able to find out what an ALU is. Can someone explain to me what it is, what it does and how it works in a computer?
sorry, im new
very funny...
Anyhow, the ALU is what does all the arithmetic (and some logic) in your computer. In this case, you would use it to calculate things, probably after your computer interprets the required calculation and sends it to the ALU in a more usable form.
I don't actually know very much about what I'm talking about, but I think that's what you're looking for.
An ALU does addition, subtraction, multiplication, division, compares numbers and does logical operations on them. You can start off with an ALU the only adds, though. :P In TPT, ALUs tend to have built-in memory, due to SPRK cycle limits.
You should probably start off making other tech before making a full-blown computer. You logic gates are excellent, but smaller solutions (and faster) are avaliable. Take a look at
for smaller, faster logic gates. You can use X-NOR for a comparator.
Sandwichlizard has made some great logic gates at
The alu at
Anyway, as I said, you should make more tech to give you more experience, and hopefully you should build a better computer.