Rules for Assembly Language Programming
Scott D. Anderson

This handout was made up based on actual errors done by students. Now that you have been warned about them, I expect that you will never again make these errors. There will be big deductions if you do, so use this as a checklist, to ensure that your programs are properly written.

The purpose of theses rules is to make your programs clearer, better organized, and more efficient. They aren't just arbitrary rules that I made up to make your lives more difficult. I have tried to justify the rules, but if you're puzzled about why a rule exists, please ask.

Many of these forbidden situations will never arise if you code your program from a proper outline, such as a flowchart or C++ code.

Things Forbidden by Modularity

The following taboo things are ruled out by proper modularity. See the handout on modularity.

Other Forbidden Things

The following lists things that your program should never do under any circumstance.

Things to Avoid



Scott D. Anderson
7/20/1998