在第5行(buffer db 10 dwb['$']
)中,错误A2208缺少操作员错误。
.model small
.stack 100h
.data
num dw 4567
buffer db 10 dwb['$']
.code
main proc
mov ax, @data
mov ds , ax
mov ax , num
mov bx, offset buffer
.
.
l1 :
end main
答案 0 :(得分:0)
我找到了自己问题的答案
.model small
.stack 100h
.data
num dw 4567
buffer db 10 dup('$') ; only change here
.code
main proc
mov ax, @data
mov ds , ax
mov ax , num
mov bx, offset buffer
l1 :
mov dx, 0
mov cx ,10
div cx
add dl,48
mov [bx] , dl
inc bx
cmp ax, 0
jne l1
mov dx , offset buffer
mov ah,9
int 21h
mov ax, 4c00h
int 21h
main endp
end main