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.
- Declare a print line:
LINE DC C'0'
SPOT DC 40C' '
DC CL11'END OF LINE'
- Use XPRNT to print LINE.
- We will fill SPOT with the letter 'X':
MVI SPOT,C'X'
MVC SPOT+1(39),SPOT
- Use XPRNT to print LINE. (You may want to insert an XPRNT
between the MVI and the MVC as well, to watch what happens.)
- Now we will fill SPOT with a repeating 'ABCD' pattern:
MVC SPOT(4),=CL4'ABCD'
MVC SPOT+4(36),SPOT
- Use XPRNT to print LINE.
- Now you should write the code needed to do each of these:
- FILL SPOT with the character '*'. Print LINE again.
- FILL SPOT with a repeating 'XYZ' pattern. Print LINE again.