hewlett-packard HP 9835A — 069

Assembly Language Fundamentals 69 Symbolic Operations You have been introduced, in small doses, to symbols throughout the chapters preceding this one. The idea of symbols in an assembly language is the same as it is in a higher language such as BASIC - to make operations simpler and the code more understandable. Several symbolic tools are provided for you in this assembly language system. You have" already seen one described in detail in this chapter - labels. There are some pre-defined symbols the assembly system provides for certain locations in the machine (mostly registers). There are ways to define your own symbols (and give them a "type").

And, there are ways to access symbols in other modules. Symbols can be used as operands in machine instructions and in some pseudo-instructions. They can be part of expressions in an operand. Pre-Defined Symbols The assembler has pre-defined a number of symbols and has reserved them as references to symbols themselves are "reserved", meaning they cannot be re-defined (by using them as labels on something else). The symbols are - special locations in memory. Each of the locations has a special meaning and function.

The Symbol Description A Arithmetic accumulator Arl } BCD arithmetic accumlators B Ar2 Arithmetic accumulator Base_page Global temporary area (50 words) C Cb Stack pointer Address:.extension bit for byte pointer in C D Stack pointer Db Address-extension bit for byte pointer in D Dmac Dmama DMA count register DMA memory address register End _isr _high End isr low Dmapa DMA peripheral address register Isr _flag Reserved symbols for writing interrupt service routines Isr_psw