谁知道怎么用DEBUG看这个代码的结果吗?
有哪位高手教教我如何用DEBUG看这段代码的结果。
.model small
.stack
.data
table db 100,98,96,85,73,65,58,46,42,40,36,32,30,26,21,13,9,6,4,2,?,0dh,0ah,'$'
num db ?
.code
.startup
mov ah,01h
int 21h
mov num,al
mov ah,02h
mov dl,0ah
int 21h
mov dl,al
mov bx,0
mov cx,14h
again:cmp dl,table[bx]
je iend
ja ibove
inc bx
loop again
jmp ibelo
mov di,14h
mov cx,14h
sub cx,bx
ibove:mov al,table[di-1]
mov table[di],al
dec di
loop ibove
mov table[bx],dl
jmp iend
ibelo:mov table[14h],dl
iend:.exit 0
end