Minecraft Redstone Project

16 bit add done

That + that probably does equal that. I can't be bothered figuring it out xD
16bitadd.png
 
The next job I'm going to attempt is wiring up the 3 status registers with 3 multiplexers.

Carry (C) will be a 16th bit overflow taken from the ADD, Subtract, Rotate Left and Rotate Right commands
Digit Carry (DC) will be a 4th bit overflow taken from ADD and Subtract
Zero (Z) will be an OR of all the outputs hooked into a NOT and ANDed with a mux (i think)
 
I'm not sure I've done it right, the only thing I could find on the web was that the high and low nibbles get swapped. I haven't done anything with the middle.
This may only work with 8 bit though.
Unless u swap 1 with 2 and 3 with 4
 
The examples I keep finding are all swapping nibbles in a octet, whilst I guess at the minute you're swapping the high\low on a 16bit value? Sorry, wish I'd got an answer, but I'm way out of my depth!!

EDIT: LOL! Well that was quick work!
 
Haha. You won't be coming back, I'm not sure my programming skills will be able to make 16 bit Crysis in assembly language :(

Got the Flags sorted now. I think that's the ALU finished.

Zero Flag
zeroflag.png

Digit Carry Flag
dcflag.png

Carry Flag (with Digit Carry lit up too)
cflag.png

Not sure if I have the mechanics of these flags spot on, but they work.
 
Back
Top Bottom