.

MACRO MAX x, y, z

push eax

mov eax, x

cmp eax, y

jle m1

mov eax, y

m1:

mov z, eax

pop eax

endm

. . LOCAL <>, . LOCAL /.

. .

IDEAL

p386

MODEL fLat

extrn ExitProcess:proc

dataseg

x dd 3

y dd 5

z dd 2

u dd ?

codeseg

begin:

MACRO max x, y, z

local m1

push eax

mov eax, x

cmp eax, y

jge m1

mov eax, y

m1:

mov z, eax

endm

max [x], [y], [u]

max [u], [z], [u]

call ExitProcess

end begin

??0000, ??0001 ..