Page 18 - Introduction to Microcontrollers Architecture, Programming, and Interfacing of The Motorola 68HC12
P. 18

List of Figures                                                     xvii


        Figure 632 Parameters in a Table                                     161
        Figure 6.33 Calling Sequence for Passing Arguments in a Table        162
        Figure 6.34 Simple Subroutine                                       164
        Figure 6.35 A Subroutine Saving and Restoring Registers              164
        Figure 6.36 Saving and Restoring All the Registers                   165
         Figure 6.37 A Subroutine with Multiple Entry Points                 165
        Figure 6.38 Calling the ith Subroutine for Figure 6.37              166
        Figure 6.39 A Jump Vector                                           167
        Figure 6.40 Calling the ith Subroutine of a Jump Vector              167
        Figure 6.41 Emulation of SWI                                        167
        Figure 6.42 Emulation of RTI                                         168
        Figure 6.43 An SWI Handler                                          169
        Figure 6.44 Calling an SWI Handler                                  169
        Figure 6.45 A Trap Handler                                           170
        Figure 6,46 Calling a Trap Handler                                  170
        Figure 6.47 Program for Problem 13                                  175

        Figure 7.1  8-Bit Unsigned Multiply Subroutine                       180
        Figure 7.2 8-Bit Unsigned Divide Subroutine                         181
        Figure 7.3 8-Bit Signed Multiply Subroutine                         183
        Figure 7.4 Conversion from Decimal to Binary Multiplying by Powers of 10  185
        Figure 7.5 Conversion from Decimal to Binary by Multiplication by 10  186
        Figure 7.6 Conversion from Binary to Decimal by Successive Subtraction  187
        Figure 7.7 Conversion from Binary to Decimal by Division by Powers of Ten  188
        Figure 7.8 Conversion from Binary to Decimal by Division by 10      189
        Figure 7.9 Conversion from Binary to Decimal by Decimal Multiplication  190
        Figure 7.10 Passing Parameters on the Stack                         192
        Figure 7.11 Stack Movement when Evaluating (8)                       193
        Figure 7.12 Finding a Parsing Tree for (5) from the Bottom Up        194
        Figure 7.13 Algorithm to Write a Sequence of Subroutine Calls for (5)  195
        Figure 7.14 32-Bit Negation Subroutine                              197
        Figure 7.15 32-Bit Compare Subroutine                                198
        Figure 7.16 Multiplication of 32-Bit Numbers                         198
        Figure 7.17 32-Bit by 32-Bit Unsigned Multiply Subroutine           199
        Figure 7.18 32-Bit by 32-Bit Unsigned Divide Subroutine              199
        Figure 7.19 Push-and-Add Subroutine                                 201
        Figure 7.20 Procedure for Floating-Point Addition                   209
        Figure 7.21 Fuzzy Logic Control System                              211
        Figure 7.22 Membership Functions                                    211
        Figure 7,23 A Fuzzy Inference Kernel                                213

        Figure 8.1 Conditional Statements                                   226
        Figure 8.2 Case Statements                                          227
        Figure 8.3 Loop Statements                                          228
        Figure 8.4 A Huffman Coding Tree                                    233
        Figure 8.5 Other Huffman Codes                                      247
   13   14   15   16   17   18   19   20   21   22   23