Assembler Developer

Moderators: None (Apply to moderate this forum)
Number of threads: 960
Number of posts: 1753

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
code to copy from a stack to a register Posted by allimom on 8 Nov 2005 at 8:47 PM
This is from a homework question in a textbook that pretty much sucks. I've been unable to find any reference to this action in the chapter the problem is from, and have reached the point of desperation. I'm trying to find the code to copy a particular item from a stack into a separate register.

Specifically the question is:
Register R5 is used in a program to point to the top of a stack. Write a sequence of instructions using the INDEX, AUTOINCREMENT or AUTODECREMENT adressing modes to perform the following:
Copy the 5th item from the top into R3

the textbook I'm using is "Computer Organization, fifth edition" by Hamacher, Vranesic and Zaky.

Any help or direction to different resources would be much appreciated.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.