 ; edx points at string
asc2int:
    xor ecx, ecx
    mov cl, BYTE  [edx]
    xor eax, eax

    sub cl, '0'  ;Translates '0'..'9' to 0..9 trick
    cmp cl, 10
    jae endxx

convert_loop:
    lea eax, DWORD  [eax+4*eax]  ; eax*=5
    inc edx
    lea eax, DWORD  [ecx+2*eax]  ; eax=eax*2+ecx

    mov cl, BYTE  [edx]
    xor cl, '0'
    cmp cl, 10
    jb convert_loop

endxx:
    ret

fileUsrWords db 'usrWords.txt',0
openUsrWords: mov  edx,zbuf
           mov  eax,fileUsrWords
           call LoadFile
           mov dword [edx+zbuf],0
           ;Msg  zbuf
        mov esi,mySyntax
        mov ebx,esi
        mov edx,zbuf
.0:     call asc2int
        mov byte [esi+wordLen],al
        ;pusha
        ;PrintValue pvvv,eax
        ;popa
        inc edx
        ;mov esi,mySyntax ;string 22 bytes and byte color
        ;mov ebx,esi
.1:
        mov al,[edx]
        cmp al,13
        jbe .3
        mov [esi] ,al
        inc esi
        inc edx
        jmp .1
.3:     mov byte [esi],0	;mov byte [esi+1],0
        add ebx,wordLen+1
        mov esi,ebx
        add edx,2
        cmp byte [edx],0
        jnz .0
        
ret