Menu ▾ ▴

#226 inline __asm comments broken

closed-fixed
None
2023-09-23
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

  • André Simon

    André Simon - 2023-06-30
    • status: open --> open-accepted
    • assigned_to: Jim Pattee --> André Simon
     
  • André Simon

    André Simon - 2023-09-01

    I see it is a decade later, but you can test a fix in the latest git commit.

     
  • André Simon

    André Simon - 2023-09-23
    • status: open-accepted --> closed-fixed
     
  • André Simon

    André Simon - 2023-09-23

    Fixed in 3.4.8.

     

Log in to post a comment.