hewlett-packard HP 9835A — 189

fr--------------------------------------------------------------------------------" 189 Chapter 9 Errors and Error Processing Summary: This chapter contains a discussion of Assembly Language ROM and other related errors, and what causes them. Included are methods for trapping errors and possible methods for correcting them. Whether you are writing or accessing an assembly language routine, it is possible to encounter how certain errors can be handled. It is not intended as a definitive checklist of what can go an error resulting from your actions.

The intent of this chapter is to give some gUidance as to wrong, nor is it an exhaustive treatment of the means to correct the difficulties which are listed. Rather, it is meant as a reference for some of the things which can go wrong, what might cause them, and how to deal with them. Each programmer has a unique method of approaching the should offer some assistance in identifying the source of an error. problem of error processing and there is no way to anticipate all of them. Even so, the following Not every machine error is covered here - oniy those directly related to writing or accessing assembly language routines.

A complete listing of error messages (though not in the same detail as in this chapter) can be found in Appendix J. Types of Errors There are three types of errors associated with assembly language routines: those which occur during the writing (or entering) of the source code (called "syntax-time" errors); those which occur while assembling the source code (called "assembly-time" errors); and those which occur during the execution of an assembly language routine (called "run-time" errors). Some of these errors can be anticipated and trapped, others cannot. Syntax-Time and Assembly-Time Errors Syntax errors are caught when entering source code, usually with the message - IMPRnp~p ,SOURCE ~i