|
代码和图都贴出来了,很简单,高手直接过就行了.别喷我!代码如下:
hh macro n
rept n
mov dl,13
mov ah,2
int 21h
mov dl,10
mov ah,2
int 21h
endm
endm
dss1 segment
xs1 db 'shurushu:',13,10,36
cw1 db 'cuowu!',13,10,36
zq1 db 'zhengque!',13,10,36
cf1 db ?
dss1 ends
css1 segment
assume cs:css1,ds:dss1
ks1:
mov ax,dss1
mov ds,ax
mov dx,offset xs1
mov ah,9
int 21h
mov ah,8
int 21h
mov cf1,al
call sc1
hh 1
mov dx,offset zq1
mov ah,9
int 21h
mov ah,1
int 21h
mov ah,4ch
int 21h
sc1 proc
bjks:
mov dx,offset xs1
mov ah,9
int 21h
mov ah,1
int 21h
cmp al,cf1
jz js1
hh 1
mov dx,offset cw1
mov ah,9
int 21h
jmp bjks
js1:
ret
sc1 endp
css1 ends
end ks1
呵呵,无聊自己写了下,就当联系汇编编程!下面是图 片:
|
|