Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/12/07 23:41
Read: times


 
#143133 - No reason to hide the excreted code
Responding to: ???'s previous message
             ; FUNCTION _CRCNib (BEGIN)
                                           ; SOURCE LINE # 33
;---- Variable 'b' assigned to Register 'R7' ----
                                           ; SOURCE LINE # 34
                                           ; SOURCE LINE # 35
0000 EF                MOV     A,R7
0001 6200        R     XRL     CRCLo,A
                                           ; SOURCE LINE # 36
0003 AF00        R     MOV     R7,CRCHi
                                           ; SOURCE LINE # 37
0005 E500        R     MOV     A,CRCLo
0007 C4                SWAP    A
0008 54F0              ANL     A,#0F0H
000A 6500        R     XRL     A,CRCLo
000C F500        R     MOV     CRCHi,A
                                           ; SOURCE LINE # 38
000E 8F00        R     MOV     CRCLo,R7
                                           ; SOURCE LINE # 39
0010 C4                SWAP    A
0011 540F              ANL     A,#0FH
0013 6200        R     XRL     CRCLo,A
                                           ; SOURCE LINE # 40
0015 C3                CLR     C
0016 13                RRC     A
0017 6500        R     XRL     A,CRCHi
0019 FF                MOV     R7,A
                                           ; SOURCE LINE # 41
001A E500        R     MOV     A,CRCHi
001C 33                RLC     A
001D 33                RLC     A
001E 33                RLC     A
001F 54F8              ANL     A,#0F8H
0021 6200        R     XRL     CRCLo,A
                                           ; SOURCE LINE # 42
0023 8F00        R     MOV     CRCHi,R7
                                           ; SOURCE LINE # 43
0025 22                RET     


List of 32 messages in thread
TopicAuthorDate
CRC16 CCITT - What a challenge!            01/01/70 00:00      
   Have you seen this?            01/01/70 00:00      
      Of course!            01/01/70 00:00      
         Balance            01/01/70 00:00      
            I know, Russ,            01/01/70 00:00      
         Code? What code?            01/01/70 00:00      
            in the code library - look to the left column            01/01/70 00:00      
               Thanks! I missed that note in the first post.            01/01/70 00:00      
   I need a hint            01/01/70 00:00      
      write down the bits            01/01/70 00:00      
         Thanks for the hint            01/01/70 00:00      
            Your observations plus a comparison in C            01/01/70 00:00      
               The rest of the story ...            01/01/70 00:00      
                  Compilers, but Keil C51 8.09 for the stated 28~            01/01/70 00:00      
                  and this processes only a nibble, isn't it...            01/01/70 00:00      
                     No, it process the entire byte.            01/01/70 00:00      
                        now it\'s my pencil time...            01/01/70 00:00      
                           FYFI            01/01/70 00:00      
                              Clarification re: 8-bit optimized term            01/01/70 00:00      
                              on optimisation            01/01/70 00:00      
                                 Jan's optimization            01/01/70 00:00      
                                    Re: on optimization            01/01/70 00:00      
                                       Can you please be more specific?            01/01/70 00:00      
                                          More specifically ...            01/01/70 00:00      
            and what            01/01/70 00:00      
               More on checksums            01/01/70 00:00      
   No reason to hide the excreted code            01/01/70 00:00      
      Excreted code needs context like any other code            01/01/70 00:00      
   One More Comment            01/01/70 00:00      
      ... and a marginal remark ...            01/01/70 00:00      
         Init all ones frequently specified            01/01/70 00:00      
   18 cycles            01/01/70 00:00      

Back to Subject List