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

📄 crc-ccitt.lst

📁 Tried to make CAN logger on AT91sam7X-ek, but have no idea how to implement FATFs... -( I m just a
💻 LST
📖 第 1 页 / 共 2 页
字号:
###############################################################################
#                                                                             #
#                                                       25/May/2009  02:53:22 #
# IAR ANSI C/C++ Compiler V5.20.0.20892/W32 EVALUATION for ARM                #
# Copyright 1999-2008 IAR Systems AB.                                         #
#                                                                             #
#    Cpu mode     =  arm                                                      #
#    Endian       =  little                                                   #
#    Source file  =  F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\external_libs\crc\crc-ccitt.c               #
#    Command line =  F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\external_libs\crc\crc-ccitt.c -D            #
#                    at91sam7x256 -D flash -D TRACE_LEVEL=4 -lC               #
#                    F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at #
#                    91sam7x256_flash\List\ --remarks --diag_suppress         #
#                    Pe826,Pe1375 -o F:\Diplomovka\IARprojects\Diplomovka\25. #
#                    4.2009\getting-started-project-at91sam7x-ek-iar\getting- #
#                    started-project-at91sam7x-ek\at91sam7x-ek\getting-starte #
#                    d-project\ewp\at91sam7x256_flash\Obj\ --no_cse           #
#                    --no_unroll --no_inline --no_code_motion --no_tbaa       #
#                    --no_clustering --no_scheduling --debug --endian=little  #
#                    --cpu=ARM7TDMI -e --fpu=None --dlib_config "C:\Program   #
#                    Files (x86)\IAR Systems\Embedded Workbench 5.0           #
#                    Evaluation\ARM\INC\DLib_Config_Full.h" -I                #
#                    F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\.. #
#                    \..\..\at91lib/peripherals\ -I                           #
#                    F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\.. #
#                    \..\..\at91lib\ -I F:\Diplomovka\IARprojects\Diplomovka\ #
#                    25.4.2009\getting-started-project-at91sam7x-ek-iar\getti #
#                    ng-started-project-at91sam7x-ek\at91sam7x-ek\getting-sta #
#                    rted-project\ewp\..\..\..\at91lib\memories\sdmmc\ -I     #
#                    F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\.. #
#                    \..\..\at91lib/components\ -I                            #
#                    F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\.. #
#                    \..\..\at91lib/boards/at91sam7x-ek\ -I                   #
#                    F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\.. #
#                    \..\..\external_libs/crc\ -I "C:\Program Files           #
#                    (x86)\IAR Systems\Embedded Workbench 5.0                 #
#                    Evaluation\ARM\INC\" --interwork --cpu_mode arm -Oh      #
#    List file    =  F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at #
#                    91sam7x256_flash\List\crc-ccitt.lst                      #
#    Object file  =  F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-s #
#                    tarted-project-at91sam7x-ek-iar\getting-started-project- #
#                    at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at #
#                    91sam7x256_flash\Obj\crc-ccitt.o                         #
#                                                                             #
#                                                                             #
###############################################################################

F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\external_libs\crc\crc-ccitt.c
      1          /*
      2           *	linux/lib/crc-ccitt.c
      3           *
      4           *	This source code is licensed under the GNU General Public License,
      5           *	Version 2. See the file COPYING for more details.
      6           */
      7          
      8          //#include <linux/types.h>
      9          //#include <linux/module.h>
     10          //#include <linux/crc-ccitt.h>
     11          #define __KERNEL__
     12          #include "crc-ccitt.h"

   \                                 In section .text, align 4, keep-with-next
   \   static __??Code32?? __code __interwork unsigned short crc_ccitt_byte(unsigned short, unsigned char const)
   \                     crc_ccitt_byte:
   \   00000000   001021E0           EOR      R1,R1,R0
   \   00000004   FF1001E2           AND      R1,R1,#0xFF
   \   00000008   14209FE5           LDR      R2,??crc_ccitt_byte_0  ;; crc_ccitt_table
   \   0000000C   811082E0           ADD      R1,R2,R1, LSL #+1
   \   00000010   B010D1E1           LDRH     R1,[R1, #+0]
   \   00000014   200421E0           EOR      R0,R1,R0, LSR #+8
   \   00000018   0008A0E1           MOV      R0,R0, LSL #+16
   \   0000001C   2008A0E1           MOV      R0,R0, LSR #+16
   \   00000020   1EFF2FE1           BX       LR               ;; return
   \                     ??crc_ccitt_byte_0:
   \   00000024   ........           DC32     crc_ccitt_table
     13          
     14          /*
     15           * This mysterious table is just the CRC of each possible byte. It can be
     16           * computed using the standard bit-at-a-time methods. The polynomial can
     17           * be seen in entry 128, 0x8408. This corresponds to x^0 + x^5 + x^12.
     18           * Add the implicit x^16, and you have the standard CRC-CCITT.
     19           */

   \                                 In section .rodata, align 4
     20          u16 const crc_ccitt_table[256] = {
   \                     crc_ccitt_table:
   \   00000000   000089111223       DC16 0, 4489, 8978, 12955, 17956, 22445, 25910, 29887, 35912, 40385
   \              9B322446AD57
   \              3665BF74488C
   \              C19D        
   \   00000014   5AAFD3BE6CCA       DC16 44890, 48851, 51820, 56293, 59774, 63735, 4225, 264, 13203, 8730
   \              E5DB7EE9F7F8
   \              811008019333
   \              1A22        
   \   00000028   A5562C47B775       DC16 22181, 18220, 30135, 25662, 40137, 36160, 49115, 44626, 56045
   \              3E64C99C408D
   \              DBBF52AEEDDA
   \   0000003A   64CBFFF976E8       DC16 52068, 63999, 59510, 8450, 12427, 528, 5017, 26406, 30383, 17460
   \              02218B301002
   \              99132667AF76
   \              3444        
   \   0000004E   BD554AADC3BC       DC16 21949, 44362, 48323, 36440, 40913, 60270, 64231, 51324, 55797
   \              588ED19F6EEB
   \              E7FA7CC8F5D9
   \   00000060   83310A209112       DC16 12675, 8202, 4753, 792, 30631, 26158, 21685, 17724, 48587, 44098
   \              1803A7772E66
   \              B5543C45CBBD
   \              42AC        
   \   00000074   D99E508FEFFB       DC16 40665, 36688, 64495, 60006, 55549, 51572, 16900, 21389, 24854
   \              66EAFDD874C9
   \              04428D531661
   \   00000086   9F702004A915       DC16 28831, 1056, 5545, 10034, 14011, 52812, 57285, 60766, 64727, 34920
   \              3227BB364CCE
   \              C5DF5EEDD7FC
   \              6888        
   \   0000009A   E1997AABF3BA       DC16 39393, 43898, 47859, 21125, 17164, 29079, 24606, 5281, 1320, 14259
   \              85520C439771
   \              1E60A1142805
   \              B337        
   \   000000AE   3A26CDDE44CF       DC16 9786, 57037, 53060, 64991, 60502, 39145, 35168, 48123, 43634
   \              DFFD56ECE998
   \              6089FBBB72AA
   \   000000C0   06638F721440       DC16 25350, 29327, 16404, 20893, 9506, 13483, 1584, 6073, 61262, 65223
   \              9D512225AB34
   \              3006B9174EEF
   \              C7FE        
   \   000000D4   5CCCD5DD6AA9       DC16 52316, 56789, 43370, 47331, 35448, 39921, 29575, 25102, 20629
   \              E3B8788AF19B
   \              87730E629550
   \   000000E6   1C41A3352A24       DC16 16668, 13731, 9258, 5809, 1848, 65487, 60998, 56541, 52564, 47595

⌨️ 快捷键说明

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