I'm sure others will tell you about coding techniques and structured macros etc. My advice when "improving" old spaghetti assembler code is this: Make sure you have a regression test library ready to insure that the behavior of the new code matches the old code. Spaghetti code can hide a lot of little subtleties and you need to make sure that the more structured, more readable code doesn't change or miss anything. You also need to compare performance. On more than one occasion we found the performance of the old spaghetti code module hard to beat or match. --Roger
On Thu, Feb 3, 2011 at 10:16 AM, Miklos Szigetvari < miklos.szigetv...@isis-papyrus.com> wrote: > Hi > > Asking here for the best practices to rewrite "spaghetti" assembler > code to use structured programming macros > I think I red a number of SHARE presentations > > My concern is currently the error handling > Till now, if an error occurred, there was a JUMP/BRANCH to an error > block, with all the possible error messages , and after a JUMP/BRANCH > to the module RETURN. > Seems to me , instead of this, some DOEXIT or ASMLEAVE would be more > complicated >