PA1_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
EE 306: Programming Assignment 1 Department of Electrical and Computer Engineering The University of Texas at Austin Spring 2010 Due: Tuesday, 23 rd March 2010, 11:59 pm Instructor : Ramesh Yerraballi, TAs: Pratyusha Nidamaluri, Arvind Chandrababu You must do the programming assignment by yourself. You are permitted to get help ONLY from the TAs and the instructor. 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
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/10/2010 for the course EE 306 taught by Professor Ambler during the Spring '07 term at University of Texas at Austin.

Page1 / 2

PA1_1 - 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