OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Mar 19, 2024 1:39 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Transfering data among registers
PostPosted: Sun Jun 26, 2016 2:08 am 
Offline
Member
Member

Joined: Fri Nov 16, 2012 4:16 am
Posts: 29
Location: Iran
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
CPU.png [ 13.1 KiB | Viewed 2500 times ]
Top
 Profile  
 
 Post subject: Re: Transfering data among registers
PostPosted: Mon Jun 27, 2016 9:58 am 
Offline
Member
Member

Joined: Wed Jun 03, 2015 5:03 am
Posts: 397
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 :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group