Transfering data among registers

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
Haghiri75
Member
Member
Posts: 29
Joined: Fri Nov 16, 2012 4:16 am
Location: Iran
Contact:

Transfering data among registers

Post 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.
Attachments
CPU.png
embryo2
Member
Member
Posts: 397
Joined: Wed Jun 03, 2015 5:03 am

Re: Transfering data among registers

Post 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.
My previous account (embryo) was accidentally deleted, so I have no chance but to use something new. But may be it was a good lesson about software reliability :)
Post Reply