汇编写的藏数游戏,早以前写的刚才找到发出来给大家看看!
hh macro nrept n
mov dl,13
mov ah,2
int 21h
mov dl,10
mov ah,2
int 21h
endm
endm
dss1 segment
xs1 db 'shuru:10-99,deshu',13,10,36
cw1 db 'dale!',13,10,36
cw2 db 'xiaole!',13,10,36
zq1 db 'zhengque!',13,10,36
cf1 db 0,0
cf2 db 0,0
dss1 ends
css1 segment
assume cs:css1,ds:dss1
ks1:
mov ax,dss1
mov ds,ax
mov ah,2ch
int 21h
xor bx,bx
xor ax,ax
mov al,dh
daa
mov dh,al
mov bh,al
and dh,0fH
add dh,30h
mov cf1,dh
mov cl,4
shr bh,cl
add bh,30h
mov ,bh
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
mov cf2,al
mov ah,1
int 21h
mov ,al
hh 1
xor bx,bx
mov bl,cf1
cmp bl,cf2
ja bdy
jb bdy1
mov bl,
cmp bl,
ja bdy
jb bdy1
jz js1
hh 1
bdy:
mov dx,offset cw2
mov ah,9
int 21h
jmp bjks
bdy1:
mov dx,offset cw1
mov ah,9
int 21h
jmp bjks
js1:
ret
sc1 endp
css1 ends
end ks1 楼主 上个图吧.
无图无真相
页:
[1]