Destructive Overlap Practice Exercise

This exercise is intended to help you understand destructive overlap.

It is not a homework assignment and will not be graded.


You need to write a program.

  1. Declare a print line:
    LINE     DC    C'0'
    SPOT     DC    40C' '
             DC    CL11'END OF LINE'

  2. Use XPRNT to print LINE.

  3. We will fill SPOT with the letter 'X':
             MVI   SPOT,C'X'
             MVC   SPOT+1(39),SPOT

  4. Use XPRNT to print LINE. (You may want to insert an XPRNT between the MVI and the MVC as well, to watch what happens.)

  5. Now we will fill SPOT with a repeating 'ABCD' pattern:
             MVC   SPOT(4),=CL4'ABCD'
             MVC   SPOT+4(36),SPOT

  6. Use XPRNT to print LINE.

  7. Now you should write the code needed to do each of these: