Created
April 20, 2014 17:45
Revisions
-
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ void * i; void func(void * a) { if i + 10 * 16 { a = i; } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ [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