The Lesson

In this exercise we will invent a new System/z instruction and your task will be to implement the class that supports it. The new instruction will be called MVC2 and is an SS2 instruction.

The instruction is a variation on the regular MVC. Here are the instruction semantics:

Requirements

  1. Build a class called MVC2 that extends SS2Instruction, then your can use the code in MVC as and perhaps AP as a model of what needs to be built in the execute() method.
  2. Build three object code programs that exercise your new class. Include programs that use MVC2 when l1 = l2, l1 > l2, and l1 < l2. Write a fourth object code program where the source and target fields overlap.