| ??? 08/16/02 13:18 Read: times |
#27338 - RE: What is ugly and what not in assembl |
A good programming practice in most programming languages (including assembler) would be to analize the program as a whole and then detect repetead pieces of code that could be candidates to be part of soubrutines.
In the example you've posted, I would have done the same as Peter said, or if that code appears several times, I would go one step further: I would do a soubrutine called 'clrmem' with 2 parameters, a memory location and a length counter, that would clear any buffer with any length. Pablo. |



