Changes between Initial Version and Version 1 of Ticket #6758, comment 2


Ignore:
Timestamp:
Dec 29, 2016, 6:07:07 AM (7 years ago)
Author:
sunxunfeng

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6758, comment 2

    initial v1  
    1         i = 3;
    2 002C136E  mov         dword ptr [i],3 
    3         i = i*256*256*256;
    4 002C1375  mov         eax,dword ptr [i] 
    5 002C1378  shl         eax,8 
    6 002C137B  shl         eax,8 
    7 002C137E  shl         eax,8 
    8 002C1381  mov         dword ptr [i],eax 
    9         i = i<<24;
    10 002C1384  mov         eax,dword ptr [i] 
    11 002C1387  shl         eax,18h 
    12 002C138A  mov         dword ptr [i],eax 
    13         i = i%256;
    14 002C138D  mov         eax,dword ptr [i] 
    15 002C1390  and         eax,800000FFh 
    16 002C1395  jns         main+4Eh (2C139Eh) 
    17 002C1397  dec         eax 
    18 002C1398  or          eax,0FFFFFF00h 
    19 002C139D  inc         eax 
    20 002C139E  mov         dword ptr [i],eax 
    21         i = i&0xFF;
    22 002C13A1  mov         eax,dword ptr [i] 
    23 002C13A4  and         eax,0FFh 
    24 002C13A9  mov         dword ptr [i],eax 
    25         i = i/256/256;
    26 002C13AC  mov         eax,dword ptr [i] 
    27 002C13AF  cdq 
    28 002C13B0  and         edx,0FFh 
    29 002C13B6  add         eax,edx 
    30 002C13B8  sar         eax,8 
    31 002C13BB  cdq 
    32 002C13BC  and         edx,0FFh 
    33 002C13C2  add         eax,edx 
    34 002C13C4  sar         eax,8 
    35 002C13C7  mov         dword ptr [i],eax 
    36         i = i>>16;
    37 002C13CA  mov         eax,dword ptr [i] 
    38 002C13CD  sar         eax,10h 
    39 002C13D0  mov         dword ptr [i],eax 
    40 
    41         return 0;
    42 002C13D3  xor         eax,eax