Hirdetés

Aktív témák

  • P.H.

    senior tag

    válasz P.H. #6 üzenetére

    hotfix:

    { EAX: src0 string address
    EDX: src1 string address }
    pushad
    xor esi,esi
    xor edi,edi
    mov ebx,offset(_uppercase)
    add esi,eax
    jz @finalize
    add edi,edx
    jz @finalize
    @compare:
    xor eax,eax
    xor edx,edx
    xor ecx,ecx
    add al,[esi]
    lea esi[esi+01h]
    mov dl,[edi]
    mov al,[ebx+eax]
    jz @final
    add cl,[ebx+edx]
    lea edi,[edi+01h]
    jz @finalize
    cmp al,cl
    mov dl,cl
    jz @compare
    @finalize:
    cmp eax,edx
    popad
    setz al ; elhagyható ASM szinten
    ret

    A "viszont a kisebb/nagyobb relációt is az EFLAGS-ben" törölve (_uppercase átszerkesztés kell hozzá, mert z<ő)

    Arguing on the Internet is like running in the Special Olympics. Even if you win, you are still ... ˙˙˙ Real Eyes Realize Real Lies ˙˙˙

Aktív témák