After reading the February 1994 TechTalk item, "Helpful SEU Tricks," I felt one particular function, Copy/Overlay, was overlooked.
The Copy/Overlay function simply allows code in SEU to be copied (enter 'C' to copy) and overlaid (enter 'O' to overlay) on top of existing lines. Yet, it can make unwieldy or repetitive alterations much more straightforward.
For example, adding right-hand comments, such as a modification reference, can be done very quickly. First, create a blank SEU line containing only the required description, as shown in the first line of 7.
For example, adding right-hand comments, such as a modification reference, can be done very quickly. First, create a blank SEU line containing only the required description, as shown in the first line of Figure 7.
Then copy the newly created line by entering 'C' in the sequence column. Next, enter an 'O' followed by a 6 in the sequence column of the first target line. This results in a tidy packet of new, clearly commented code in your source. Of course, the initial line will generate a syntax error after the operation; but the line can quickly be removed because the cursor automatically returns to it.
Another use is in commenting out unnecessary sections of code. I have given a very suitable example in 8. It shows how one initially commented line (no syntax errors this time as it is a valid entry) can be made to overlay six more lines in just a few easy keystrokes. Just enter 'C' on the commented line, followed by O6 to overlay it on the next six lines.
Another use is in commenting out unnecessary sections of code. I have given a very suitable example in Figure 8. It shows how one initially commented line (no syntax errors this time as it is a valid entry) can be made to overlay six more lines in just a few easy keystrokes. Just enter 'C' on the commented line, followed by O6 to overlay it on the next six lines.
I am sure many people will find this a useful extra weapon in their armory.
More SEU Tricks
Figure 7 Propagating Comments with Overlay
Before: C C MOD01 O6 C $SUBR BEGSR 0003.00 C Z-ADD1 COUNT 0004.00 C COUNT DOUEQ10 0005.00 C ADD 1 COUNT 0006.00 C END 0007.00 C ENDSR After: 0001.00 C MOD01 0002.00 C $SUBR BEGSR MOD01 0003.00 C Z-ADD1 COUNT MOD01 0004.00 C COUNT DOUEQ10 MOD01 0005.00 C ADD 1 COUNT MOD01 0006.00 C END MOD01 0007.00 C ENDSR MOD01
More SEU Tricks
Figure 8 Commenting Out Code
Before: C C**** O6 C $SUBR BEGSR 0003.00 C Z-ADD1 COUNT 0004.00 C COUNT DOUEQ10 0005.00 C ADD 1 COUNT 0006.00 C END 0007.00 C ENDSR After: 0001.00 C***** 0002.00 C***** $SUBR BEGSR 0003.00 C***** Z-ADD1 COUNT 0004.00 C***** COUNT DOUEQ10 0005.00 C***** ADD 1 COUNT 0006.00 C***** END 0007.00 C***** ENDSR
LATEST COMMENTS
MC Press Online