Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bdw
Created May 1, 2017 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdw/1f5a6c07e8db33dfb54d27d8c9fa329d to your computer and use it in GitHub Desktop.
Save bdw/1f5a6c07e8db33dfb54d27d8c9fa329d to your computer and use it in GitHub Desktop.
; expr jit version of asm
add rdx,0x68
mov si,WORD PTR [rdi+0xc]
mov r8,rsi
and r8,0x10
test r8,r8
je label_004
cmp QWORD PTR [r9+r10*8],0x0
je label_004
mov cx,WORD PTR [r11+0xc]
mov rsi,rcx
and rsi,0x10
test si,si
jne label_004
; same thing hand-written
label_002: test WORD PTR [rcx+0xc],0x10
je label_003
test rdx,rdx
je label_003
test WORD PTR [rdx+0xc],0x10
jne label_003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment