|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
assume cs:code
data segment
db 10 dup(0)
data ends
code segment
start:mov ax,12666
mov bx,data
mov ds,bx
mov si,0
call dtoc
mov dh,8
mov dl,3
mov cl,2
call show_str
mov ax,4c00h
int 21h
dtoc: mov ch,0
mov bx,10
ck:div bx ;dtoc
mov cl,al
jcxz ok
add dl,30h
mov byte ptr ds:[si],dl
mov dl,0
inc si
jmp ck
ok:ret
show_str:
mov dh,8
mov dl,3
mov cl,2
mov ax,160 ;show_str
mul dh
mov bx,ax
mov ax,2
mul dl
add bx,ax ;
mov ax,0b800h
mov es,ax
s:mov cl,[si]
mov es:[bx],cl
mov ch,0
jcxz h
mov byte ptr es:1h[bx],2h
add bx,2
dec si
jmp s
h: ret
code ends
end start 为什么不可以了,想了很久麻烦大家看看
|
|