Spring 2002 CSCI 255 Practice Homework 6

This homework is not graded. It is practice for the 1 April quiz.

Problem 1

Translate the LC/2 assembly program given in problem 7.9 (page 153) of the textbook to binary.

Problem 2

Write an LC/2 assembly program to compute the following:


  R2 = R3 & 0x0505 ;
  if (R2 == R4)
    R2 = R2 + 3 ;