hewlett-packard HP 9835A — Chapter 4

Chapter 4 Table of Contents Assembly Language Fundamentals. Program Entry> . > > , . , .............. > ..................... , . . . .. . ............... 49 Assembly Language Source ................................ , ......... , . . . .. . 51 Actions. . . . . . .. . .............. ,.. . ............... , ........ " ........... 51 Labels ..................................... , , . . . . . . . .. . ........ , ...... 51 Comments .. > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 53 Syntaxing the Source. . . . . . . . .. . ................ , ................ > > . . . . . . . .. 53 Storage . . . . . . . . ..

.................................. . .. ,..... . .... ,.',....... 56 Modules ........ , ..... , . . .. .., .... , ..... ,.. .., ... ,., .... ,.,.,.. .."...... 56 Creating Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. ......................... 55 Variables .. , .......................... , , . , ... , .... , .. , ..... , ...... , ... ,.". 56 Repeating Instructions .................. , ....... , , ..... , ... , . , . . . .. ,............ 59 Data Generators ... , . , ....... , . , , .... , . , , . , .... , ... , ......... , ........... , ... 57 Assembling.. ., ..... ,.' .. "........... " ..... ". , ........ " .... , .. , ....... ,.

60 Effect of BASIC Environments ........ , ... , .... , , .... , ........... , '.' .......... 60 Source Listing Control.. ., ... ,.... ,.,.... . ...... , ....... ,., ... , ... ,...... 61 Page Length ..... , ....... , ....... , .. , . , ....... , .. ." ............... '.... 63 End-of-Page Control ... , .... , ..... " ., .. ,............. . ... , .......... ,. 63 Page Format ... , .... , .... , .... , .. ,.................................. ., 62 Page Headings. , .... , , .......... , ................. , . , ..... , . . . . . . . . . . . . .. 64 Blank Line Generation, ....... , ............ , ........ " ......... " ... ,.,. 65 Non-Listable Pseudo-Instructions ............ , ... , . , ...

, ...... , .. . ....... , 65 Conditional Assembly ......... , . , .. , .. , ......... ,....................... . .. 65 Relocation. , .... , ...... , ...... , ..... , . , .. ....... . .... ,.,., ...... ,......... 68 Symbolic Operations .. , ... , ... , .............. , . , ....... , ........................ 69 Pre-Defined Symbols ... , ... > . . .. . .... ,.' ..... > ....... , .. , ...... : ........... 69 Defining Your Own .... , ............ , ................ , ..... , .... , ....... , .... 71 Literals ....... ,.... , .......... ,.,.. ." ............ ,...................... 72 Evaluation of Literals .................. , ............ , ..... , .... , ..... , .... 72 Nesting Literals .......

, ..... , .................. , . . .. . ............... ' ... 73 Nonsensical Uses of Literals ....... , .................. , .. .......... . ..... 74 Expressions .. , ........................... , .......... , . , ..................... 75 External Symbols and Elements .. , . , ................ , ... , ..... , ..... , ...... , .. 77 Literal Pools. , . .. ., ... ,., ...... ,. .., ............... ' ... , ............ ,.. 74 Other Absolute Elements .................................... , ., ............. 78 Utilities ........ , ........................ , ... , ............ , ... , ........ , . . . . . . . .. 79