26 lines
397 B
Plaintext
26 lines
397 B
Plaintext
program basic_conditional
|
|
u8 <> nope = "nope\n"
|
|
u8 <> yup = "yup\n"
|
|
begin
|
|
mov eax 0
|
|
mov ebx 1
|
|
if eax = ebx then
|
|
mov eax 1
|
|
mov edi 1
|
|
mov esi nope
|
|
mov edx 5
|
|
syscall
|
|
end if
|
|
|
|
mov eax 0
|
|
if eax = eax then
|
|
mov eax 1
|
|
mov edi 1
|
|
mov esi yup
|
|
mov edx 4
|
|
syscall
|
|
end if
|
|
|
|
exit 0
|
|
end program
|