intel x86 assembly code compile on windows platform -


i have written following sample code x86 processor. working fine o2 compiler option in visual studio withouto2 option not working, please let me know if there issue here.

sample code reference.

.386                            .model flat,c                   _text       segment align       4   public      hs_l_mls_1  l_mls_1 proc     push    ebp    mov     ebp, esp    push    ebx    push    esi    push    edi     mov     eax,  dword ptr[ebp+8]  ; load lv stack    movsx   edx,  word  ptr[ebp+12] ; load v stack    imul    edx    shrd    eax,  edx, 15    xor     edx,  edx    pop     edi    pop     esi    pop     ebx    mov     esp, ebp    pop     ebp    ret                             l_mls_1 endp  _text    ends end  

thanks ajith


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -