Created
April 20, 2014 17:45
-
-
Save anonymous/11120281 to your computer and use it in GitHub Desktop.
Generated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void * i; | |
void func(void * a) | |
{ | |
if i + 10 * 16 { | |
a = i; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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