C语言描述该程序流程:
#include <stdio.h>
int main()
{
int a=15;int b=10;
if(a>=b)
printf("%d",a);
else
printf("%d",b);
}
汇编语言:
include irvine32.inc
.data
a dword 15
b dword 20
.code
main proc
mov eax,a
cmp eax,b
jge print
mov eax,b
print:
call writeint
main endp
end main
运行结果:

本文详细展示了C语言中一个基本的if-else结构,以及其在汇编语言中的等效实现,通过对比两者来理解程序流程控制。

被折叠的 条评论
为什么被折叠?



