Answer the question
In order to leave comments, you need to log in
How to make complex conditions in assembler?
in C, this would look like this:
if(cmd=="a")
getHelp();
else if(cmd=="b")
openTextEditor();
else if(cmd=="c")
reboot();
Answer the question
In order to leave comments, you need to log in
cmp ax, 1
je :action1
cmp ax, 2
je :action2
;тут ребут
:action1:
тут вызов справки
jmp :done
:action2:
тут вызов редактора
jmp :done
:done
тут конец
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question