Advertisement
Guest User

getAnchoredMask.asm

a guest
Sep 2nd, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ; int _fastcall getAnchoredMask( int fretMask _ECX )
  3.     mov eax, 0x10000
  4.     cmp ecx, eax
  5.     jl  @CHECK_RED
  6.    
  7. @OPT_RET:
  8.     mov eax, ecx
  9.     ret 0
  10.    
  11. @CHECK_RED:
  12.     cmp ecx, 0x01000
  13.     jl  @CHECK_YELLOW
  14.  
  15.     or  eax, ecx        ; return fretMask
  16.     ret 0
  17.    
  18. @CHECK_YELLOW:
  19.     cmp ecx, 0x00100
  20.     jl  @CHECK_BLUE
  21.    
  22.     or  ecx, 0x11000    ; return fretMask | 0x11000;
  23.     jmp @OPT_RET
  24.    
  25. @CHECK_BLUE:
  26.     cmp ecx, 0x00010
  27.     jl  @CHECK_ORANGE
  28.  
  29.     or  ecx, 0x11100    ; return fretMask | 0x11100;
  30.     jmp @OPT_RET
  31.    
  32. @CHECK_ORANGE:
  33.     cmp ecx, 0x00001
  34.     jl  @RET_FULL_MASK
  35.    
  36.     or  ecx, 0x11110    ; return fretMask | 0x11110;
  37.     jmp @OPT_RET
  38.    
  39. @RET_FULL_MASK:
  40.     mov eax, 0x11111    ; return 0x11111;
  41.     ret 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement