ece330_f10_hw3

ece330_f10_hw3 - ECE 330 Due: 9/13/2010 Homework 3 Fall...

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

View Full Document Right Arrow Icon
ECE 330 Homework 3 Fall 2010 Due: 9/13/2010 Page 1 of 3 1. Create macros that implement the following instructions. These macros should not use any registers other than those specified as operands. Write a program that utilizes each of the following macros. Show before and after snapshots of registers that confirms validity. a. decr decrement Operation: rA rA - 1 Assembler Syntax: decr rA Example: decr r6 b. rori rotate right immediate Operation: rB rA rotated right IMM5 bit positions Assembler Syntax: rori rB, rA, IMM5 Example: rori r6, r7, 3 c. halt halt execution Operation: PC PC Assembler Syntax: halt Example: halt d. comp one’s complement Operation: rB ~rA Assembler Syntax: comp rB, rA Example: comp r2, r8
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 330 Homework 3 Fall 2010 Due: 9/13/2010 Page 2 of 3 2. Create macros that implement the following instructions. These macros may require the usage of additional registers. When a temporary register is needed for temporary values use register r1 . Write a program that utilizes each of the
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/02/2011 for the course ECE 330 at Boise State.

Page1 / 3

ece330_f10_hw3 - ECE 330 Due: 9/13/2010 Homework 3 Fall...

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

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