21,453
社区成员
发帖
与我相关
我的任务
分享
;
;This Program Compiled Sucess by Masm 6.15
;
assume cs:code,ds:data
data segment
asc db 5,0,5 dup (0)
data ends
code segment
start:
mov ax,data
mov ds,ax
mov dx,offset asc
mov ah,10
int 21h
mov cl,asc+1
mov ch,0
mov bx,offset asc+2
a:
mov ax,0
b:
mov dx,10
mul dx
and byte ptr [bx],0fh
add al,[bx]
adc ah,0
inc bx
loop b
mov ah,4ch
int 21h
code ends
end start