Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#226 inline __asm comments broken

1.15.3
open
Jim Pattee
None
5
2013-09-01
2013-07-01
Storm
No

before:

            //---------------------------------------- Перекодировка ANSI->OEM ----------
            void toOEM (char *s)
            {
                    __asm
                    {  push  esi
                    mov   esi,s             ; ESI - адрес строки
                    mov   ebx,offset ANSItoOEM
            V2:  mov   al,[esi]          ;
                    or    al,al
                            je    V5
                            xlatb [ebx]              ; Перекодировка поля в EOM
                            mov   [esi],al           ;
                    inc   esi                ;
                    jmp   V2
            V5:  pop   esi
                    }
            }

after:

//---------------------------------------- Перекодировка ANSI->OEM ----------
void toOEM (char* s)
{
  __asm {
    push  esi
    mov   esi, s             ;
    ESI - адрес строки
    mov   ebx, offset ANSItoOEM
    V2:  mov   al, [esi]          ;
    or    al, al
    je    V5
    xlatb [ebx]              ;
    Перекодировка поля в EOM
    mov   [esi], al           ;
    inc   esi                ;
    jmp   V2
    V5:  pop   esi
  }
}

Discussion