我是这种语言的新手,并试图熟悉它。在此示例中,我收到“错误寻址”错误,但它有什么问题?
hextoasc proc near ; AX input, si point result storage address
push ax bx cx dx si di bp es
mov cx,00h
mov bx,0ah
hexloop1:
mov dx,0
div bx
add dl,'0'
push dx
inc cx
cmp ax, 0ah
jge hexloop1
add al, '0'
mov [si], al
hexloop2:
pop ax
inc si
mov [si], al
loop hexloop2
inc si
mov al, '$'
mov [si], al
pop es bp di si dx cx bx ax
ret
endp
这是我的错误: