============================================= Project 4 - Hints and Errors to avoid ============================================= - Ian! D. Allen - idallen@idallen.ca - www.idallen.com Here are some errors you might make working on Project 4: Assembly Time Errors -------------------- You try to declare a subroutine/procedure with the same name as some other label in your source (which also includes all the INCLUDE source). Labels can only refer to one thing. Change the other name to be unique. You put a colon (":") on the label that starts a subroutine (a "procedure"). No colon is allowed on this code label (unlike other code labels that must end in colon), and (also unlike other labels) the label must be on the same line as "proc near". You try to put your procedures after the "ends" or "end" statements in your source file. The procedures must be *inside* your segment. The last two non-blank lines of your source file must be the "ends" and "end" directives. You forget to put a CR/LF on the last line of your code. Always end your source files with extra blank lines. Run Time Errors --------------- You forget the "$" on the end of a string, and end up printing a lot of binary junk on the screen. All strings must end in the "$" character. You forget what to do at the end of a subroutine. In C or Java, subroutines generate code to return to the calling program. In assembly language, you have to write that code or else the subroutine won't return.