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)
Ok, I've got to ask (and I'm prepared to look stupid)! How does a Nybble get swapped? Nybbles 1 and 4 look like a straight flip, but nybble 2 has got me scratching my head!
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!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.