EE 306 - Programming Assignment 1

EE 306 - Programming Assignment 1 - Department of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Department of Electrical and Computer Engineering The University of Texas at Austin EE 306, Fall 2007 Programming Assignment 1 Due: November 2nd, 11:59 pm Anthony Ambler, Instructor You can do the programming assignment by yourself or in groups of not more than 3 people. Instructions on how to submit the assignment will be provided later. Left-rotate a 16-bit number N by B bit positions In this assignment, you are asked to write a program in LC-3 machine language to left-rotate a 16-bit word N by a given number of bit positions B , and store the result back in memory. Your program should assume that the word N to be rotated is stored in memory location x3100 and the number of bit positions B is stored in memory location x3101 . Your program should store the rotated result in memory location x3102 . Your program should start at memory location x3000 . Example: If the memory location x3100 contains the word 0000111100001111, and memory location x3101 contains 0000000000000101, then your program should store the value
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/22/2008 for the course EE 306 taught by Professor Ambler during the Fall '07 term at University of Texas at Austin.

Page1 / 2

EE 306 - Programming Assignment 1 - Department of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online