Computer Science 251
Computer Organization

Dickinson College
Fall Semester 2001
Grant Braught

Class #3 - Addressing Modes & Arrays

Main Ideas For Today

Lecture Notes

Homework Assigned Today

    Due Date: 9/18/01

  1. Consider the following fragment of Java code: Translate this Java fragment into assembly language. Recall that the assignment y = x does not copy the array but just copies the value of x, which is a reference, into y.

  2. The following fragment of Java code rotates the values in an array one position to the right. The value at the highest array location wraps arround to the lowest location. Write an assembly language equivalent of this java program fragment.

    Solutions - posted after due date.