News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

CyclicCode

Started by 0x401000, December 02, 2009, 06:32:05 PM

Previous topic - Next topic

0x401000

Someone can give me an example of code that can be called as a Cyclic Code ??? http://en.wikipedia.org/wiki/Cyclic_code
very interested in the code interpreter based on Cyclic CodeĀ  ::) Thanks

dedndave

this is as simple as it gets - lol

        mov     esi,offset DataArray
        mov     edx,0DABEh
        mov     ecx,ByteCount

HashIt: mov     al,[esi]
        xor     al,dl
        ror     dl,1
        mov     [esi],al
        not     dl
        inc     esi
        dec     ecx
        jnz     HashIt

the new value is dependant on the last one - the pattern repeats every 32 bytes
a little more complicated but very common example...
http://en.wikipedia.org/wiki/Cyclic_redundancy_check

0x401000

Thank you. Indeed examples are extremely simple, then probably worthwhile to rephrase. What methods of Cyclic Code exist in programming interpreters?  Thanks

dedndave

i am trying to figure out what you are after - lol
i suppose the parser might be considered cyclic

0x401000