Skip to content

Instantly share code, notes, and snippets.

Created April 20, 2014 17:45
Show Gist options
  • Save anonymous/11120281 to your computer and use it in GitHub Desktop.
Save anonymous/11120281 to your computer and use it in GitHub Desktop.
Generated
void * i;
void func(void * a)
{
if i + 10 * 16 {
a = i;
}
}
[cpu 8086]
[bits 16]
i:
resb 2
func:
push bp
mov bp, sp
mov ax, 10
mov bx, 16
mul bx
mov bx, word [i]
add bx, ax
test bx, bx
jz .L0_0
mov word [ss:bp + 4], word [i]
.L0_0:
pop bp
ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment