九九热最新网址,777奇米四色米奇影院在线播放,国产精品18久久久久久久久久,中文有码视频,亚洲一区在线免费观看,国产91精品在线,婷婷丁香六月天

總匯編語(yǔ)言課設(shè) 文本編輯器

上傳人:仙*** 文檔編號(hào):83834333 上傳時(shí)間:2022-05-02 格式:DOC 頁(yè)數(shù):52 大?。?55KB
收藏 版權(quán)申訴 舉報(bào) 下載
總匯編語(yǔ)言課設(shè) 文本編輯器_第1頁(yè)
第1頁(yè) / 共52頁(yè)
總匯編語(yǔ)言課設(shè) 文本編輯器_第2頁(yè)
第2頁(yè) / 共52頁(yè)
總匯編語(yǔ)言課設(shè) 文本編輯器_第3頁(yè)
第3頁(yè) / 共52頁(yè)

下載文檔到電腦,查找使用更方便

10 積分

下載資源

還剩頁(yè)未讀,繼續(xù)閱讀

資源描述:

《總匯編語(yǔ)言課設(shè) 文本編輯器》由會(huì)員分享,可在線閱讀,更多相關(guān)《總匯編語(yǔ)言課設(shè) 文本編輯器(52頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、word匯編語(yǔ)言課程設(shè)計(jì)說明書學(xué) 院:軟件學(xué)院專 業(yè):軟件工程 學(xué)生某某: 馬江濤 學(xué)號(hào): 題 目: 文本編輯器 指導(dǎo)教師:陳夠喜 潘廣貞 楊劍 馬巧梅2016年 1 月- 49 - / 52目錄摘 要I一、課程設(shè)計(jì)的目的- 1 -11設(shè)計(jì)的目的- 1 -1.2 設(shè)計(jì)的內(nèi)容- 1 -二、設(shè)計(jì)方案的論證- 2 -2.1 開發(fā)背景- 2 -2.2 程序設(shè)計(jì)的意義- 2 -設(shè)計(jì)思路- 2 -三、設(shè)計(jì)的實(shí)現(xiàn)過程- 3 -3.1 總體設(shè)計(jì)方案- 3 -3.2 實(shí)現(xiàn)過程- 3 -3.3 數(shù)據(jù)定義- 4 -模塊設(shè)計(jì)- 6 -四、調(diào)試運(yùn)行與結(jié)果分析- 9 -4.1 運(yùn)行結(jié)果- 9 -4.2 結(jié)果分析- 12

2、-五、測(cè)試與問題探討- 13 -程序測(cè)試- 13 -六、課設(shè)總結(jié)與體會(huì)- 16 -七、參考文獻(xiàn)- 17 -附錄- 18 -摘 要文本編輯器在我們的日常生活中使用非常頻繁,是我們工作當(dāng)中不可或缺的工具。我們經(jīng)常使用的文本編輯器有微軟的記事本和Microsoft Word。但是本次課程設(shè)計(jì)我使用了8086匯編語(yǔ)言實(shí)現(xiàn)了DOS下的簡(jiǎn)易文本編輯器,雖然與平時(shí)使用的文本編輯器相比功能比擬簡(jiǎn)單,也不夠完善。但是旨在考察匯編語(yǔ)言的運(yùn)用以與軟件的實(shí)現(xiàn)過程。本次設(shè)計(jì)以設(shè)計(jì)思路為主介紹簡(jiǎn)易文檔編輯器的設(shè)計(jì)實(shí)現(xiàn)程,對(duì)其設(shè)計(jì)原理進(jìn)展一定的闡述,并且分模塊對(duì)其中較為重要的子程序進(jìn)展講解,并且附上運(yùn)行結(jié)果與匯編源程序。關(guān)

3、鍵字:文本編輯器、匯編語(yǔ)言、DOS一、課程設(shè)計(jì)的目的11 設(shè)計(jì)的目的掌握匯編語(yǔ)言的使用,掌握BIOS、DOS功能調(diào)用的使用方法,以與對(duì)匯編語(yǔ)言程序設(shè)計(jì)的過程有較深刻的理解。1.2 設(shè)計(jì)的內(nèi)容本次設(shè)計(jì)主要包括一下內(nèi)容:1. 美觀且易于操作的界面;2. 在文本編輯區(qū)可以隨意輸入字符;3. 可以使用Backspace鍵對(duì)光標(biāo)的前一個(gè)字符刪除;4. 實(shí)現(xiàn)了光標(biāo)上移、下移、左移、右移;5. 實(shí)現(xiàn)了下拉菜單以與彈出式菜單;6. 可以實(shí)現(xiàn)屏幕的上卷和下卷; 二、設(shè)計(jì)方案的論證2.1 開發(fā)背景本次開發(fā)主要是在微機(jī)原理與接口技術(shù)這門課學(xué)習(xí)完成之后,通過做一些實(shí)用的小軟件考察自己的學(xué)習(xí)情況。并且熟悉匯編語(yǔ)言開發(fā)程

4、序的過程。2.2 程序設(shè)計(jì)的意義由于信息化的普遍,所以文本編輯器在我們工作中也是必不可少的,所以我選擇了開發(fā)文本編輯器,不只為人們帶來了便利,同時(shí)也能鍛煉自己開發(fā)思路,熟悉匯編語(yǔ)言開發(fā)過程,以與提高軟件開發(fā)水平。常見的有Windows下的記事本,Mac OS X下的文本編輯,Linux下的vi、emacs、gedit、DOS下的edit等。本次設(shè)計(jì)類似于DOS下的edit。2.3 設(shè)計(jì)思路本程序主要利用BIOS功能調(diào)用設(shè)計(jì)編輯器的菜單和編輯窗口,以與光標(biāo)的定位與獲取。利用DOS功能調(diào)用實(shí)現(xiàn)字符的讀取與輸出,以與對(duì)按鍵的識(shí)別。通過對(duì)光標(biāo)以與字符輸出來控制刪除以與上下左右鍵的控制。三、設(shè)計(jì)的實(shí)現(xiàn)過

5、程3.1 總體設(shè)計(jì)方案程序利用模塊化設(shè)計(jì)方法,對(duì)每個(gè)要實(shí)現(xiàn)的功能都設(shè)計(jì)成子程序,方便使用。程序中具體模塊如圖3-1。主程序繪制界面按鍵判斷子菜單繪制功能的實(shí)現(xiàn)displaydis_edit圖3-1 程序關(guān)系3.2 實(shí)現(xiàn)過程程序通過對(duì)BIOS和DOS的功能調(diào)用實(shí)現(xiàn)了對(duì)窗口、菜單、字符輸入輸出、按鍵識(shí)別等功能。程序整體利用了模塊化的程序設(shè)計(jì)方法,把每個(gè)功能模塊都分成子程序來分別調(diào)用。程序中主要用到了以下子程序:l display(顯示菜單欄);l dis_edit(顯示編輯窗口);l dis_file(顯示文件菜單);l dis_text(顯示文本菜單);l key_back(backspace刪

6、除字符);l key_down(光標(biāo)向下);l key_left(光標(biāo)向左);l key_up(光標(biāo)向上);l key_right(光標(biāo)向右);l key_pgup(菜單的循環(huán)選擇);l ok_exit(退出);l open(子菜單顯示與控制);3.3 數(shù)據(jù)定義程序中要顯示的字符串都事先在數(shù)據(jù)段DS和附加段ES中定義好了,由于功能調(diào)用的需要所以把數(shù)據(jù)定義在了數(shù)據(jù)段和附加段中。以下是程序中用到數(shù)據(jù)的定義:data segments db File View Text About$f1 db Open,10,13,Exit,10,13,$f2 db Clear$i db 0b db 0buff d

7、b 1200 dup(?),$printf db Cant open the File$mss db Massage$ab1 db About Edit$ab2 db GaoHaiFeng$ab3 db C1141$ab4 db 2013-6-22$q1 db 543589796$data endseata segments1 db File$s2 db View$s3 db Text$s4 db About$s5 db Open$s6 db Exit$s7 db Clear$eorr db eorr:$ok db 5bh,OK,5dh,$design db Design:$class db

8、Class:$date db Date:$ db :$eata ends事先定義好數(shù)據(jù)的結(jié)構(gòu)可以減少程序設(shè)計(jì)中很多的麻煩。3.4 模塊設(shè)計(jì)主要利用了BIOS功能調(diào)用繪制了兩個(gè)窗口,一個(gè)是編輯區(qū),一個(gè)是菜單欄。實(shí)現(xiàn)過程見圖3-4-1。開始繪制編輯區(qū)繪制菜單欄返回主程序圖3-4-1 繪制界面3.4.2 檢測(cè)按鍵這個(gè)模塊主要是利用了AL=0,INT 16H來實(shí)現(xiàn)的,其中AH中存放的是按鍵的掃描碼,AL中存放的是按鍵的ascii碼。具體實(shí)現(xiàn)過程見圖3-4-2。開始等待輸入AH=0?按鍵處理輸出字符返回主程序否是圖3-4-2 檢測(cè)按鍵3.4.3 子菜單繪制該模塊同樣采用了BIOS功能調(diào)用設(shè)置子菜單,具體

9、操作見圖3-4-3。開始繪制File子菜單繪制View子菜單繪制Text子菜單繪制About子菜單返回主程序圖3-4-3 繪制子菜單四、調(diào)試運(yùn)行與結(jié)果分析4.1 運(yùn)行結(jié)果程序的主界面,包含有File,View,Text,About菜單,如圖4-1所示。圖4-1 程序主界面按下PgUp鍵對(duì)菜單進(jìn)展循環(huán)選擇,綠色光帶顯示當(dāng)前選中菜單,按任意除PgUp之外的按鍵切換到編輯區(qū),如圖4-2所示。圖4-2 選擇菜單File菜單包括Open和Exit子菜單,如圖4-3所示。圖4-3 下拉菜單當(dāng)光帶選中Open或者Exit時(shí)按下回車鍵,將執(zhí)行光帶所選中的子菜單項(xiàng)所對(duì)應(yīng)的程序,圖中為選中Open,如圖4-4所示

10、。圖4-4 選擇OpenText菜單下只有一個(gè)Clear,用來清屏,如圖4-5所示。圖4-5text子菜單About主要用來顯示作者以與開發(fā)的相關(guān)信息,如圖4-6.圖4-6 選中About4.2 結(jié)果分析本程序主要仿照DOS下的Edit文本編輯器,但是由于時(shí)間的關(guān)系有些功能未實(shí)現(xiàn),主要實(shí)現(xiàn)了菜單的彈出、選擇、光標(biāo)的移動(dòng)、文本的刪除、屏幕上卷等功能。五、測(cè)試與問題探討5.1 程序測(cè)試首先是測(cè)試文本編輯區(qū),如圖5-1.圖5-1 編輯測(cè)試然后是測(cè)試菜單彈出后文本區(qū)的內(nèi)容是否被抹掉,如圖5-2和5-3所示。圖5-2 文本區(qū)保存圖5-3 文本區(qū)回復(fù)接下來是測(cè)試清屏菜單項(xiàng),如圖5-4和5-5所示。圖5-4

11、 選中Clear圖5-5 文本清屏六、課設(shè)總結(jié)與體會(huì)通過本次課程設(shè)計(jì)可以說收獲頗多,雖然在程序設(shè)計(jì)的過程中遇到很多問題,其中想過放棄,也曾因此徹夜不眠過,甚至有思路就立馬把程序?qū)懗鰜?。但最終都在教師的幫助和自己的努力下走過來了。做完了這個(gè)程序之后感覺對(duì)匯編的理解更加深刻了,也似乎懂得了開發(fā)底層軟件的原理。雖然匯編和其它程序設(shè)計(jì)語(yǔ)言相比麻煩很多,但是匯編是通過對(duì)計(jì)算機(jī)底層硬件的控制來達(dá)到人機(jī)交互的效果或者是實(shí)現(xiàn)了人們需要的功能。可以說了解了計(jì)算機(jī)大體的工作過程,為以后學(xué)習(xí)嵌入式系統(tǒng)以與計(jì)算機(jī)底層方面做了鋪墊。七、參考文獻(xiàn)附錄源程序:data segments db File View Text

12、About$f1 db Open,10,13,Exit,10,13,$f2 db Clear$i db 0b db 0buff db 1200 dup(?),$printf db Cant open the File$mss db Massage$ab1 db About Edit$ab2 db GaoHaiFeng$ab3 db C1141$ab4 db 2013-6-22$q1 db 543589796$data endseata segments1 db File$s2 db View$s3 db Text$s4 db About$s5 db Open$s6 db Exit$s7 db

13、Clear$eorr db eorr:$ok db 5bh,OK,5dh,$design db Design:$class db Class:$date db Date:$ db :$eata endsstack segmentdw 1000 dup(?)stack endscode segmentassume ds:data,cs:code,ss:stack,es:eatastart:mov ax,datamov ds,axmov ax,eatamov es,axmov ah,0mov al,3int 10hcall display;顯示菜單欄call dis_edit;顯示編輯區(qū)mov a

14、h,4chint 21hdisplay proc near;顯示菜單欄mov ah,6mov al,0mov ch,0mov cl,0mov dh,0mov dl,79mov bh,70hint 10hmov ah,6mov al,1mov ch,0mov cl,0mov dh,0mov dl,79mov bh,70hint 10hmov ah,2mov bh,0mov dh,0mov dl,0int 10hmov ah,09hlea dx,sint 21hretdisplay endp dis_edit proc near;顯示編輯區(qū)mov di,0;作為緩存指針mov ah,6mov al

15、,0mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,6mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hpgup_r:mov ah,2mov bh,0mov dh,1mov dl,0int 10hnext1:mov cx,80next:mov ah,00h;從鍵盤讀取字符int 16hcmp al,1bh;判斷輸入的字符是否是ESCjz exitcmp al,0dh;判斷輸入的字符是否是回車jz entercmp ah,48h;判斷按鍵是否是上,ah中存放的是

16、特殊鍵盤掃描碼jz di_upcmp ah,4bh ;判斷是否是左jz di_leftcmp ah,4dh;判斷是否是右jz di_rightcmp ah,50h;判斷是否是下jz di_downcmp ah,49h;判斷是否是pgup鍵按下jz di_pgup cmp ah,0ehjz di_backmov buffdi,al ;每次接收一個(gè)字符時(shí)都存放到BUFF中inc di mov buffdi,$ mov dl,al;al中存放的是普通字符的ascii碼mov ah,2int 21hloop nextjmp next1;這里相當(dāng)于無限循環(huán),CX的值不起作用enter:mov buffd

17、i,10inc dimov buff di,13inc dimov ah,3;獲取光標(biāo)位置mov bh,0int 10hcmp dh,24;判斷回車之后是否是行尾jz go_againmov ah,2mov bh,0inc dhmov dl,0int 10hjmp next1di_up:call key_up;這里不需要重新定義CX的值,程序會(huì)自動(dòng)換行jmp next1di_left:call key_left;調(diào)用左移子程序jmp next1di_right:call key_right;調(diào)用右移子程序jmp next1di_down:call key_down;調(diào)用下移子程序jmp nex

18、t1di_pgup:call key_pgup;調(diào)用pgup子程序jmp pgup_rdi_back:call key_backjmp next1go_again:call dis_loop;上卷一行定位到行尾jmp next1exit:mov ah,6mov al,0mov ch,0mov cl,0mov dh,24mov dl,79int 10hretdis_edit endpdis_loop proc near;編輯區(qū)上卷一行光標(biāo)定位到行尾mov ah,6mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,2

19、mov bh,0mov dh,24mov dl,0int 10hretdis_loop endpkey_up proc nearmov ah,3;讀取光標(biāo)位置mov bh,0int 10hcmp dh,1jz rodownmov ah,2;定位光標(biāo)位置dec dhint 10hreturn:retrodown:call roll_downjmp returnkey_up endproll_down proc near;屏幕下卷mov ah,7mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,3;讀取光標(biāo)位置mov

20、 bh,0int 10hmov ah,2;定位光標(biāo)位置int 10hretroll_down endpkey_left proc nearmov ah,3;讀取光標(biāo)位置mov bh,0int 10hcmp dl,0;判斷是否到了第一列jz go_left;是的話移到上一行行尾mov ah,2mov bh,0dec dlint 10hjmp ret1go_left:cmp dh,1jnz roll_upmov ah,6mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,2mov bh,0mov dl,79mov dh

21、,1int 10hjmp ret1roll_up:mov ah,2;移到上一行行尾mov bh,0dec dhmov dl,79int 10hret1:retkey_left endpkey_right proc nearmov ah,3;讀取光標(biāo)位置mov bh,0int 10hcmp dl,79jnz go_rightcmp dh,24jnz on_okmov ah,6mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,2mov bh,0mov dh,24mov dl,0int 10hjmp ret2on_ok

22、:mov ah,2mov bh,0inc dhmov dl,0int 10hjmp ret2go_right: mov ah,2mov bh,0inc dlint 10hret2:retkey_right endpkey_down proc nearmov ah,3mov bh,0int 10hcmp dh,24jnz m_downmov ah,6mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,3mov bh,0int 10hmov ah,2mov bh,0mov dh,24int 10hjmp ret3m_d

23、own:mov ah,2mov bh,0inc dhint 10hret3:retkey_down endpkey_pgup proc near;按下pgup鍵的處理過程st_pgdn:call displaycmp i,0jnz nt;判斷當(dāng)前的菜單項(xiàng)是第幾個(gè)mov ah,6;菜單項(xiàng)處清屏mov al,0mov bh,1fhmov ch,0mov cl,0mov dh,0mov dl,3int 10hmov ah,13h;bios輸出字符串mov al,0mov cx,4mov dh,0mov dl,0mov bl,0a5hmov bh,0lea bp,s1int 10hjmp ret0nt

24、:cmp i,1jnz nt1mov bh,1fhmov ah,6mov al,0mov ch,0mov cl,9mov dh,0mov dl,12int 10hmov ah,13h;bios輸出字符串mov al,0mov cx,4mov dh,0mov dl,9mov bl,0a5hmov bh,0lea bp,s2int 10hjmp ret0nt1:cmp i,2jnz nt2mov bh,1fhmov ah,6;小菜單清屏mov al,0mov ch,0mov cl,18mov dh,0mov dl,21int 10hmov ah,13h;bios輸出字符串mov al,0mov c

25、x,4mov dh,0mov dl,18mov bl,0a5hmov bh,0lea bp,s3int 10hjmp ret0nt2:cmp i,3jnz nt1mov bh,1fhmov ah,6mov al,0mov ch,0mov cl,27mov dh,0mov dl,30int 10hmov ah,13h;bios輸出字符串mov al,0mov cx,5mov dh,0mov dl,27mov bl,0a5hmov bh,0lea bp,s4int 10hret0:inc icmp i,4jnz rttmov i,0rtt:mov ah,0hint 16hcmp ah,49hjz

26、st_pgdncmp al,0dh;判斷是否是回車jnz rt0cmp i,0jnz lolcall dis_aboutjmp rt0lol:cmp i,1jnz qcall dis_filejmp rt0 q:cmp i,3jnz rtt ;不確定call dis_textrt0:cmp i,1jnz ntfmov ah,6;菜單項(xiàng)處清屏mov al,0mov bh,70hmov ch,0mov cl,0mov dh,0mov dl,3int 10hmov ah,13h;bios輸出字符串mov al,0mov cx,4mov dh,0mov dl,0mov bl,70hmov bh,0le

27、a bp,s1int 10hjmp rrrntf:cmp i,2jnz ntf1mov bh,70hmov ah,6mov al,0mov ch,0mov cl,9mov dh,0mov dl,12int 10hmov ah,13h;bios輸出字符串mov al,0mov cx,4mov dh,0mov dl,9mov bl,70hmov bh,0lea bp,s2int 10hjmp rrrntf1:cmp i,3jnz ntf2mov bh,70hmov ah,6;小菜單清屏mov al,0mov ch,0mov cl,18mov dh,0mov dl,21int 10hmov ah,1

28、3h;bios輸出字符串mov al,0mov cx,4mov dh,0mov dl,18mov bl,70hmov bh,0lea bp,s3int 10hjmp rrrntf2:cmp i,0jnz rrrmov bh,70hmov ah,6mov al,0mov ch,0mov cl,27mov dh,0mov dl,30int 10hmov ah,13h;bios輸出字符串mov al,0mov cx,5mov dh,0mov dl,27mov bl,70hmov bh,0lea bp,s4int 10hrrr:mov i,0ret key_pgup endpdis_file proc

29、 near;顯示File菜單mov ah,6mov al,0mov bh,70hmov ch,1mov cl,0mov dh,2mov dl,6int 10hmov ah,6mov al,1mov bh,70hmov ch,1mov cl,0mov dh,2mov dl,6int 10hmov ah,2mov bh,0mov dh,1mov dl,0int 10hmov ah,09hlea dx,f1int 21hmov ah,00hint 16hcmp ah,50h;如果按方向鍵下jnz inputan_don:cmp b,0jnz hahamov ah,13hlea bp,s6mov al

30、,0mov cx,4mov dh,2mov dl,0mov bh,0mov bl,70hint 10hmov ah,13hlea bp,s5mov al,0mov cx,4mov dh,1mov dl,0mov bh,0mov bl,05ahint 10hjmp inputhaha:cmp b,1jnz inputmov ah,13hlea bp,s5mov al,0mov cx,4mov dh,1mov dl,0mov bh,0mov bl,70hint 10hmov ah,13hlea bp,s6mov al,0mov cx,4mov dh,2mov dl,0mov bh,0mov bl,

31、05ahint 10hinput:inc bcmp b,2jnz eeemov b,0eee:mov ah,00int 16hcmp ah,50h;判斷是否是方向鍵下jz an_doncmp ah,01h;判斷是否是ESCjz rrr1cmp al,0dh;判斷是否是回車jnz eeecmp b,1jnz cexitcall openjmp rrr1cexit:call ok_exitrrr1:mov ah,6mov al,0mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,6mov al,1mov ch,1mov cl,0mo

32、v dh,24mov dl,79mov bh,1ehint 10hcall dis_buffretdis_file endpdis_buff proc nearmov ah,2mov bh,0mov dh,1mov dl,0int 10hmov ah,9lea dx,buffint 21hretdis_buff endpopen proc nearcall displaymov ah,6mov al,0mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hcall dis_buff;顯示緩存數(shù)據(jù)mov ah,6mov al,0mov bh,70h

33、mov ch,6mov cl,19mov dh,6mov dl,59int 10hmov ah,6;彈出窗口message顯示區(qū)mov al,1mov bh,70hmov ch,6mov cl,19mov dh,6mov dl,59int 10hmov ah,2mov bh,0mov dh,6mov dl,34int 10hmov ah,9lea dx,mssint 21hmov ah,6mov al,0mov bh,5ehmov ch,7mov cl,19mov dh,14mov dl,59int 10hmov ah,6mov al,1mov bh,5ehmov ch,7mov cl,19m

34、ov dh,14mov dl,59int 10hmov ah,13h;顯示eoorlea bp,eorrmov al,0mov cx,5mov bh,0mov bl,52hmov dh,10mov dl,24int 10hmov ah,2mov bh,0mov dh,10mov dl,32int 10hmov ah,9lea dx,printfint 21hmov ah,13hlea bp,okmov al,0mov cx,4mov bh,0mov bl,70hmov dh,12mov dl,37int 10hsure:mov ah,00hint 16hcmp al,0dhjnz suremo

35、v ah,6mov al,0mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hcall dis_buffretopen endpok_exit proc proc mov ah,6mov bh,0mov al,0mov ch,0mov cl,0mov dh,24mov dl,79int 10hmov ah,4chint 21hretok_exit endpdis_text proc nearmov ah,6mov al,0mov bh,70hmov ch,1mov cl,18mov dh,1mov dl,24int 10hmov ah,6mo

36、v al,1mov bh,70hmov ch,1mov cl,18mov dh,1mov dl,24int 10hmov ah,2mov bh,0mov dh,1mov dl,18int 10hmov ah,09hlea dx,f2int 21hmov ah,13hlea bp,s7mov al,0mov cx,5mov dh,1mov dl,18mov bh,0mov bl,05ahint 10hinpuu:mov ah,0int 16hcmp ah,01hjz r121cmp al,0dhjnz r121mov buff,$r121:mov ah,6mov al,0mov ch,1mov

37、cl,0mov dh,24mov dl,79mov bh,1ehint 10hcall dis_buffretdis_text endpdis_about proc nearmov ah,6mov al,0mov bh,70hmov ch,6mov cl,19mov dh,6mov dl,59int 10hmov ah,6mov al,1mov bh,70hmov ch,6mov cl,19mov dh,6mov dl,59int 10hmov ah,2mov bh,0mov dh,6mov dl,34int 10hmov ah,9;輸出About Editlea dx,ab1int 21hm

38、ov ah,6mov al,0mov bh,3ehmov ch,7mov cl,19mov dh,14mov dl,59int 10hmov ah,6mov al,1mov bh,3ehmov ch,7mov cl,19mov dh,14mov dl,59int 10hmov ah,13hlea bp,design;顯示designmov cx,7mov dh,8mov dl,30mov bh,0mov bl,30hint 10hmov ah,6;顯示CLASS處清屏mov al,0mov bh,30hmov ch,9mov cl,30mov dh,9mov dl,38int 10hmov a

39、h,13hlea bp,class;顯示classmov cx,5mov dh,9mov dl,30mov bh,0mov bl,31hint 10hmov ah,6;顯示date處清屏mov al,0mov bh,3ehmov ch,10mov cl,30mov dh,10mov dl,38int 10hmov ah,13hlea bp,date;顯示日期mov cx,5mov dh,10mov dl,30mov bh,0mov bl,30hint 10hmov ah,6;顯示 處清屏mov al,0mov bh,3ehmov ch,11mov cl,30mov dh,11mov dl,38

40、int 10hmov ah,13hlea bp, ;顯示 mov cx,3mov dh,11mov dl,30mov bh,0mov bl,30hint 10hmov ah,2mov bh,0mov dh,8mov dl,42int 10hmov ah,9;顯示lea dx,ab2int 21hmov ah,2mov bh,0mov dh,9mov dl,42int 10hmov ah,9;顯示lea dx,ab3int 21hmov ah,2mov bh,0mov dh,10mov dl,42int 10hmov ah,9lea dx,ab4int 21hmov ah,2mov bh,0mo

41、v dh,11mov dl,42int 10hmov ah,9;顯示lea dx,q1int 21hmov ah,13h;顯示OKlea bp,okmov al,0mov cx,4mov bh,0mov bl,70hmov dh,13mov dl,37int 10hcheck:mov ah,0int 16hcmp al,0dhjnz checkmov ah,6mov al,0mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1ehint 10hmov ah,6mov al,1mov ch,1mov cl,0mov dh,24mov dl,79mov bh,1eh

42、int 10hmov ah,2mov bh,0mov dh,1mov dl,0int 10hcall dis_buffretdis_about endpkey_back proc nearmov ah,3mov bh,0int 10hcmp dh,1jnz ba2cmp dl,0jnz back1mov ah,2;當(dāng)光標(biāo)在第一行第0列時(shí)mov bh,0mov dh,1mov dl,0int 10hmov ah,2mov dl,0int 21hmov ah,2;光標(biāo)回退mov bh,0mov dh,1mov dl,0int 10hjmp rsdba2:cmp dl,0jnz back1mov a

43、h,2mov bh,0dec dhmov dl,79int 10hmov ah,2mov dl,0int 21hmov ah,3mov bh,0int 10hmov ah,2;光標(biāo)回退mov bh,0dec dhmov dl,79int 10hjmp rsdback1:mov ah,2;當(dāng)光標(biāo)不是在第一行以與不在第0列時(shí)mov bh,0dec dlint 10hmov ah,2mov dl,0int 21hmov ah,3mov bh,0int 10hmov ah,2;光標(biāo)回退mov bh,0dec dlint 10hjmp rsdrsd:dec dimov buffdi,$retkey_back endpcode endsend start

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔
關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!