用汇编语言编写程序,统计1+3+5+……+99,结果存入DX寄存器中
时间: 2023-10-24 19:10:42 浏览: 142
汇编基础一
```
.model small
.stack 100h
.data
result dw 0
.code
main proc
mov ax, 0
mov cx, 50
mov bx, 1
loop1:
add ax, bx
add bx, 2
loop loop1
mov result, ax
mov dx, result
mov ah, 4ch
int 21h
main endp
end main
```
阅读全文