第6章实验题第五小题a+b->c
assume cs:codea 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 , 076aH ;第六章课后练习第5小题
mov ds , ax
mov cx , 8
mov bx , 0
mov ax , 0
s:mov bp , bx
mov al , ds:
add bx , 10H
add al ,
add bx , 10H
mov , ax
mov bx , bp
inc bx
loop s
mov ax,4c00H
int 21H
code ends
end start
抛转引玉。若有更好想法,欢迎交流
页:
[1]