Page 1 of 1

Transfering data among registers

Posted: Sun Jun 26, 2016 2:08 am
by Haghiri75
Greetings.
I wanted to add some "MOV" instructions to my simple ALU, I could do it for 2 registers, but I now can't do it for more than 2.
I used mux for choosing input data (The photo I attached), but I don't know how to move data from C or Carry registers to A.

Re: Transfering data among registers

Posted: Mon Jun 27, 2016 9:58 am
by embryo2
Haghiri75 wrote:I wanted to add some "MOV" instructions to my simple ALU, I could do it for 2 registers, but I now can't do it for more than 2.
I used mux for choosing input data (The photo I attached), but I don't know how to move data from C or Carry registers to A.
There's no carry information moved in real hardware. Because it's mostly useless.

And what's the real problem in your case? Can you move one bit? So, why you can't move 32 or 33 or whatever number of bits? Use another mux for moving carry flag bit if you wish to use such bit for some purpose.