第2章 80x86计算机寄存器..ppt

Include Irvine32.inc .data x dd 10,20,30,40,50,60,70,80,10,100 .code main PROC mov ecx, 0 mov eax, x next: cmp eax, x[4*ecx] ja LL1 mov eax, x[4*ecx] LL1: inc ecx cmp ecx,10 jb next * call writeint exit main ENDP END main Include Irvine32.inc .data x dd 10, 20,30,40,150,60,70,80,10 .code Main PROC mov ecx,10 mov esi, 0 mov eax, x next: cmp eax, x[4*esi] ja LL1 mov eax, x[4*esi] LL1: inc esi loop next call writeint exit main ENDP END main * * * 数据寄存器习惯用法(2/2) CX:计数寄存器 用于在循环或串操作指令中存放循环次数或重复次数; DX:数据寄存器 在32位乘除法运算时,存放高16位数 在间接寻址的I/O指令中存放I/O端口地址 * 地址指

文档评论(0)

1亿VIP精品文档

相关文档