assume cs:code,ds:data
data segment
buf1 db 20
db ?
db 20 dup(?)
buf2 db 20
db ?
db 20 dup(?)
sh1 db "please input tow numbers$"
sh2 db 0ah,0dh,"The first number is $"
sh3 db 0ah,0dh,"The second number is $"
sh4 db 0ah,0dh,"The result of them is $"
data ends
code segment
start: mov ax,data
mov ds,ax
show1: mov dx,sh1
mov ax,09h
int 21h
mov dx,sh2
int 21h
buf1: lea dx,buf1
mov ax,0ah
int 21h
buf2: lea dx,buf2
mov ax,0ah
int 21h
add1:
;====想法:将第一个数字送入buf1中,将第二个数字送入buf2中
;====比较两个数字的长度,以长度较大的数字的字节数作为循环次数,进行加法循环
;====将每次循环的结果依次压栈,在循环结束后,依次出栈,显示到屏幕上
目前我只想到了这些,但是再往下就不会写了...
还请大神多多指教