data segment
x db 10 dup(?)
data ends
code segment
main proc far
assume cs:code, ds:data
push ds
mov ax, 0
push ax
mov ax, data
mov ds, ax
mov ax, 12
mov si, 0
mov bx, 10
lp: div bx
mov offset[x][si], ah
inc si
cmp al, 0
jz output
cbw
jmp lp
output: mov dl, [x][si]
mov ah, 2
int 21h
dec si
cmp si, 0
jae output
ret
code ends
end main
*************************************************
编译和连接都通过了,但是运行时出现Divide overflow错误,请予以指正