⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex1.lst

📁 can bus application
💻 LST
📖 第 1 页 / 共 5 页
字号:
0010fa   0e2a     MOVLW     0x2a             TBLPTR = (short long)&_cinit;                                                  C:\mcc18\src\startup\c018i.c
0010fc   6ef6     MOVWF     0xf6,0x0                                                                                        
0010fe   0e00     MOVLW     0x0                                                                                             
001100   6ef7     MOVWF     0xf7,0x0                                                                                        
001102   0e00     MOVLW     0x0                                                                                             
001104   6ef8     MOVWF     0xf8,0x0                                                                                        
                                             _asm                                                                           C:\mcc18\src\startup\c018i.c
001106   0100     MOVLB     0x0                movlb data_ptr                                                               C:\mcc18\src\startup\c018i.c
001108   0009     TBLRDPOSTINC                 tblrdpostinc                                                                 C:\mcc18\src\startup\c018i.c
00110a   50f5     MOVF      0xf5,0x0,0x0       movf TABLAT, 0, 0                                                            C:\mcc18\src\startup\c018i.c
00110c   6f9b     MOVWF     0x9b,0x1           movwf curr_entry, 1                                                          C:\mcc18\src\startup\c018i.c
00110e   0009     TBLRDPOSTINC                 tblrdpostinc                                                                 C:\mcc18\src\startup\c018i.c
001110   50f5     MOVF      0xf5,0x0,0x0       movf TABLAT, 0, 0                                                            C:\mcc18\src\startup\c018i.c
001112   6f9c     MOVWF     0x9c,0x1           movwf curr_entry+1, 1                                                        C:\mcc18\src\startup\c018i.c
                                             _endasm                                                                        C:\mcc18\src\startup\c018i.c
                                               //while (curr_entry)                                                         C:\mcc18\src\startup\c018i.c
                                               //{                                                                          C:\mcc18\src\startup\c018i.c
                                               test:                                                                        C:\mcc18\src\startup\c018i.c
                                               _asm                                                                         C:\mcc18\src\startup\c018i.c
001114   e103     BNZ       0x111c              bnz 3                                                                       C:\mcc18\src\startup\c018i.c
001116   679b     TSTFSZ    0x9b,0x1           tstfsz curr_entry, 1                                                         C:\mcc18\src\startup\c018i.c
001118   d001     BRA       0x111c             bra 1                                                                        C:\mcc18\src\startup\c018i.c
                                               _endasm                                                                      C:\mcc18\src\startup\c018i.c
00111a   d03d     BRA       0x1196             goto done;                                                                   C:\mcc18\src\startup\c018i.c
                                                 /* Count down so we only have to look up the data in _cinit                C:\mcc18\src\startup\c018i.c
                                                  * once.                                                                   C:\mcc18\src\startup\c018i.c
                                                  *                                                                         C:\mcc18\src\startup\c018i.c
                                                  * At this point we know that TBLPTR points to the top of the current      C:\mcc18\src\startup\c018i.c
                                                  * entry in _cinit, so we can just start reading the from, to, and         C:\mcc18\src\startup\c018i.c
                                                  * size values.                                                            C:\mcc18\src\startup\c018i.c
                                                  */                                                                        C:\mcc18\src\startup\c018i.c
                                                 _asm                                                                       C:\mcc18\src\startup\c018i.c
                                           	/* read the source address */                                                   C:\mcc18\src\startup\c018i.c
00111c   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
00111e   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
001120   6f96     MOVWF     0x96,0x1       	movwf prom, 1                                                                   C:\mcc18\src\startup\c018i.c
001122   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
001124   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
001126   6f97     MOVWF     0x97,0x1       	movwf prom+1, 1                                                                 C:\mcc18\src\startup\c018i.c
001128   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
00112a   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
00112c   6f98     MOVWF     0x98,0x1       	movwf prom+2, 1                                                                 C:\mcc18\src\startup\c018i.c
                                           	/* skip a byte since it's stored as a 32bit int */                              C:\mcc18\src\startup\c018i.c
00112e   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
                                           	/* read the destination address directly into FSR0 */                           C:\mcc18\src\startup\c018i.c
001130   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
001132   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
001134   6ee9     MOVWF     0xe9,0x0       	movwf FSR0L, 0                                                                  C:\mcc18\src\startup\c018i.c
001136   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
001138   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
00113a   6eea     MOVWF     0xea,0x0       	movwf FSR0H, 0                                                                  C:\mcc18\src\startup\c018i.c
                                           	/* skip two bytes since it's stored as a 32bit int */                           C:\mcc18\src\startup\c018i.c
00113c   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
00113e   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
                                           	/* read the destination address directly into FSR0 */                           C:\mcc18\src\startup\c018i.c
001140   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
001142   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
001144   6f99     MOVWF     0x99,0x1       	movwf curr_byte, 1                                                              C:\mcc18\src\startup\c018i.c
001146   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
001148   50f5     MOVF      0xf5,0x0,0x0   	movf TABLAT, 0, 0                                                               C:\mcc18\src\startup\c018i.c
00114a   6f9a     MOVWF     0x9a,0x1       	movwf curr_byte+1, 1                                                            C:\mcc18\src\startup\c018i.c
                                           	/* skip two bytes since it's stored as a 32bit int */                           C:\mcc18\src\startup\c018i.c
00114c   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
00114e   0009     TBLRDPOSTINC             	tblrdpostinc                                                                    C:\mcc18\src\startup\c018i.c
                                                 _endasm                                                                    C:\mcc18\src\startup\c018i.c
                                                 //prom = data_ptr->from;                                                   C:\mcc18\src\startup\c018i.c
                                                 //FSR0 = data_ptr->to;                                                     C:\mcc18\src\startup\c018i.c
                                                 //curr_byte = (unsigned short) data_ptr->size;                             C:\mcc18\src\startup\c018i.c
                                                 /* the table pointer now points to the next entry. Save it                 C:\mcc18\src\startup\c018i.c
                                                  * off since we'll be using the table pointer to do the copying            C:\mcc18\src\startup\c018i.c
                                                  * for the entry.                                                          C:\mcc18\src\startup\c018i.c
                                                  */                                                                        C:\mcc18\src\startup\c018i.c
001150   cff6     MOVFF     0xff6,0x9d           data_ptr = TBLPTR;                                                         C:\mcc18\src\startup\c018i.c
001152   f09d                                                                                                               
001154   cff7     MOVFF     0xff7,0x9e                                                                                      
001156   f09e                                                                                                               
001158   cff8     MOVFF     0xff8,0x9f                                                                                      
00115a   f09f                                                                                                               
                                                                                                                            C:\mcc18\src\startup\c018i.c
                                                 /* now assign the source address to the table pointer */                   C:\mcc18\src\startup\c018i.c
00115c   c096     MOVFF     0x96,0xff6           TBLPTR = prom;                                                             C:\mcc18\src\startup\c018i.c
00115e   fff6                                                                                                               
001160   c097     MOVFF     0x97,0xff7                                                                                      
001162   fff7                                                                                                               
001164   c098     MOVFF     0x98,0xff8                                                                                      
001166   fff8                                                                                                               
                                                                                                                            C:\mcc18\src\startup\c018i.c
                                                 /* do the copy loop */                                                     C:\mcc18\src\startup\c018i.c
                                                 _asm                                                                       C:\mcc18\src\startup\c018i.c
                                                   // determine if we have any more bytes to copy                           C:\mcc18\src\startup\c018i.c
001168   0100     MOVLB     0x0            	movlb curr_byte                                                                 C:\mcc18\src\startup\c018i.c
00116a   5399     MOVF      0x99,0x1,0x1   	movf curr_byte, 1, 1                                                            C:\mcc18\src\startup\c018i.c

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -