If you have any GOTOs that reference a tag on Factor 1 of an ENDSR statement, you can replace them with the Leavesr opcode.
whenever I'm working on an old program with a lot of GOTOs and TAGs, I take out a jar of tomato sauce and put it on my desk. (It's "spaghetti code".
Pass the parmesan .
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
I'm rewriting old RPG II programs with a lot of goto's and tags, and indicators galore. It's very hard trying to understand these old programs and see the "big picture" on what these programs are trying to do. I'm still new to RPG and have read that goto's and tag's aren't good programming practice.
I just had to think a little harder and I was able to code my program with out the use of tags and goto's. Don't want to leave a legacy of "spaghetti code" like what's been left for me when the next person takes my place.
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.