Programming Forums
User Name Password Register

RSS Feed

Thread Tools Display Modes
Old Mar 17th, 2009, 11:24 PM   #1
Join Date: Mar 2009
Posts: 3
Rep Power: 0 lilfindley is on a distinguished road
Will pay for LC-3 assembly language program help

Here are the requirements;
Program 1
A program that performs a logical shift of a bit pattern to the left by a certain amount (a number between 0 and 16, including 0 and 16). The program should assume that the initial bit pattern to be shifted is in memory location x3100 and the shift amount is stored in memory location x3101. Using thos values, your program should perform the left shift and store the result in location x3102. The program should start at memory location x3000.

Program 2
A program that rotates a bit pattern to the left by a certain amount, (again a number between 0 and 16, including 0 and 16). The bit pattern is found in location x3100 with the rotate amount in memory location x3101. As before, the result is to be placed in location x3102. The program starts at location x3000. The difference between a rotate and a shift is that the bits that would have been lost in the shift are 'wrapped' around and moved into the right side of the pattern. For example, if the original pattern is 1101000100001011 and the rotate amount is 0000000000001100 (decimal 12), the result in x3102 should be, 1011110100010000.

Program 3
A program that reverses a bit pattern in memory. In this program, you are to assume that the bit pattern is given in location x3100 and that all the bits are to be reversed and then placed in location x3102. For example, if the bit pattern is 1010100101001011 is stored in location x3100, then the pattern to be placed in x3102 should be, 1101001010010101
lilfindley is offline   Reply With Quote


lc-3 programming help

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: Can SomeOne give me an example program in Assembly Language bratsercom Assembly 7 Oct 6th, 2007 8:46 AM
Assembly Language DaWei Coder's Corner Lounge 0 Apr 26th, 2007 11:15 PM
MIPS assembly language cwl157 Assembly 41 Dec 4th, 2006 11:00 PM
Assembly Language for Intel-Based Computers melbolt Book Reviews 0 Aug 15th, 2006 1:04 AM
Language display in program Prm753 C++ 3 May 30th, 2006 6:45 PM

DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC