【正文】
hr al,cl mov bl,al mov dh,10 mov dl,14 call ff pop ax push ax and al ,0fh mov bl,al mov dh,10 mov dl,18 call ff mov dh,10 mov dl,22 mov bl,10 call ff pop ax pop bx push bx push ax mov ax,0 mov al,bh mov cl,4 shr al,cl mov bl,al mov dh,10 mov dl,26 call ff pop ax pop bx push bx push ax. . . . .學(xué)習(xí)參考 mov al,bh and al,0fh mov bl,al mov dh,10 mov dl,30 call ff mov dh,0 mov dl,15 mov bl,22 call ff pop ax pop bx pop cx pop dx pop di pop si retxian endpff proc 。P39。 jz star cmp al,39。Q39。保存百分之一秒 tt: push ax push bx mov ah,0 mov al,3 int 10h mov ah,0bh mov bh,0. . . . .學(xué)習(xí)參考 mov bl,1 int 10h mov ah,0bh mov bh,1 mov bl,4 int 10h ww: pop bx pop ax call xian 。取系統(tǒng)時(shí)間 int 1ah mov ax,0 mov bx,0 mov ah,ch 。置彩色調(diào)板 mov bh,1 mov bl,4 int 10h lea dx,infon mov ah,9 int 21hkey0: mov ah,1 。str db 49 db 50h,7,0,0 db 6ch,7,0,1 db 65h,7,0,1 db 61h,7,0,1 db 73h,7,0,1 db 65h, 7,0,1 db 70h,7,1,3 db 72h,7,0,1 db 65h,7,0,1 db 73h,7,0,1 db 73h,7,0,1 db 50h,7,0,2 db 6bh,7,0,2 db 65h,7,0,1 db 79h,7,0,1 db 70h,7,0,2 db 61h,7,0,1 db 75h,7,0,1 db 73h,7,0,1 db 65h,7,0,1 db 21h,7,0,1 db 70h,7,1,9 db 72h,7,0,1 db 65h,7,0,1 db 73h,7,0,1 db 73h,7,0,1 db 51h,7,0,2 db 6bh,7,0,2 db 65h,7,0,1 db 79h,7,0,1 db 65h,7,0,2開始從鍵盤上輸入 S屏幕初始化讀取系統(tǒng)時(shí)間從鍵盤上輸入字符AL=T?AL=P?AL=Q?結(jié)束Ah=0ah24?ah←ah+1al100?bh100?秒加 1?a←1a1+1Call beepbh←bh+1Call xian讀取系統(tǒng)時(shí)間bh 為存放秒值的寄存器al 為存放分值的寄存器beep 子程序?yàn)閳?bào)時(shí)子程序ah 為存放小時(shí)的寄存器YYNNNNYNNN計(jì)時(shí)暫停Y. . . . .學(xué)習(xí)參考 db 78h,7,0,1 db 69h,7,0,1 db 74h,7,0,1 db 21h,7,0,1 db 70h,7,1,9 db 72h,7,0,1 db 65h,7,0,1 db 73h,7,0,1 db 73h,7,0,1 db 54h,7,0,2 db 6bh,7,0,2 db 65h,7,0,1 db 79h,7,0,1 db 73h,7,0,2 db 74h,7,0,1 db 6fh,7,0,1 db 70h,7,0,1 db 21h,7,0,1。Please press S to start!$39。. . . . .學(xué)習(xí)參考用七段碼電子表顯示程序系統(tǒng)時(shí)間,程序設(shè)計(jì)的關(guān)鍵是隨系統(tǒng)時(shí)間的變化,用字符組成圖形數(shù)字如何進(jìn)行相應(yīng)的變化。這些字符預(yù)先定義在數(shù)據(jù)段的字符圖形里,利用 BIOS INT 1AH 的 2 號系統(tǒng)功能調(diào)用,讀出計(jì)算機(jī)系統(tǒng)的時(shí)間(為 BCD 碼) ,置換成字符圖形標(biāo)中的圖形字符顯示。(5)學(xué)習(xí)程序設(shè)計(jì)的基本思路和方法,培養(yǎng)分析問題、解決問題的能力。. . . . .學(xué)習(xí)參考目錄1 設(shè)計(jì)任務(wù)及要求分析 ...................................................................................................1 設(shè)計(jì)目的 .........................................................................................................................1 設(shè)計(jì)任務(wù) .........................................................................................................................1 具體要求 .........................................................................................................................1 ...................................................................................................2 ................................................................................