'How to make the if else here?
%include "asm_io.asm"
global main
segment .data
msg1 : db "somme-nous samedi?",10,0
msg2 : db "Bonne weekend",10,0
msg3 : db "Bonne journee",10,0
segment .bss
segment .text
main :
mov eax,msg1
call print_string
call read_int
cmp eax,1
je one
cmp eax,0
je two
jmp here
one :
mov eax,msg2
call print_string
jmp here
two :
mov eax,msg3
call print_string
here :
mov ebx,0
mov eax,1
int 0x80
How to make the if else here to print "bonne journee" if the value entered is 0 and "bonne weekend" if it's 1?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
