第6章-实验5-(5)
将a段和b段的数据依次相加,将结果存到c段中assume cs:code
a segment
db 1,2,3,4,5,6,7,8
a ends
b segment
db 1,2,3,4,5,6,7,8
b ends
c segment
db 0,0,0,0,0,0,0,0
c ends
code segment
start:
mov ax,a
mov ds,ax
mov ax,c
mov es,ax
mov ss,ax
mov sp,10h
mov bx,0
mov cx,8
s: mov al,
push bx
add bx,16
add al,
pop bx
mov es:,al
inc bx
loop s
mov ax,4c00h
int 21h
code ends
end start
本帖最后由 fast 于 2015-6-21 03:25 编辑
学习了 ss:sp指向栈顶16,你的算错了
页:
[1]