CrackMe® Practices for Newbies
PROJECT 6: caveman by Ghiribizzo

Re: inline help...? :(.
Monday, 01-Mar-99 15:22:59

    Snakebyte_,

    I think you're missing the point of the repne. repne is an override for some string instructions which makes a single instruction repeat. You need a jnz here. Perhaps you're just having a brainstorm ?

    As for the looping, well that still leaves one small problem with inline assembly: namely you need to do something like this:

    asm {
    mov cx,3 //etc
    lodsb
    }
    here:
    asm {
    rol ax,1
    jnz here
    }

    ie you need to create the label in c rather than asm. btw, don't you need to store the new ax somewhere too, or do something with it :) heh

    Also, didn't think you should need buf_ptr. Also, you should be careful using si. Either push and pop it or stuff the whole thing in a stand alone procedure and c should do it for you.

    Cronos.


    Cronos


Message thread:

snakebyte's thread (snakebyte__@hotmail.com) (20-Feb-99 09:08:43)

Back to main board