【正文】
湖南農(nóng)業(yè)大學(xué)東方科技學(xué)院課程論文(設(shè)計)學(xué) 部:理工學(xué)部 班 級:08 姓 名: 學(xué) 號:課程論文(設(shè)計)題目:吃豆子程序課程名稱:匯編語言與微機原理評閱成績:評閱意見:成績評定教師簽名:日期: 年 月 日 目錄一、概要及關(guān)鍵詞................................1二、課程設(shè)計題目................................2三、設(shè)計思想簡述................................2四、程序流程圖..................................3五、程序源代碼................................47六、程序運行過程................................8七、課程設(shè)計總結(jié)報告.........................910八、參考文獻...................................1011 吃豆子程序?qū)W 生:WC 摘 要:本程序通過匯編語言來實現(xiàn)在屏幕上顯示多行“豆子”(用“.”表示),用一個“嘴巴”(用字符“C”表示),程序運行時,單擊空格,“嘴巴”開始從左到右逐行還是“吃豆子”,一直到“豆子”被吃完停止或者單擊空格暫停。這個程序是在Windows xp的平臺上的MASM5進行編譯的。此程序提供一個可視化游戲界面,通過鍵盤輸入相應(yīng)的操作后,便可以執(zhí)行整個游戲程序。當(dāng)再次空格或整局游戲完成后重新開始整個游戲,也可以通過鍵盤輸入定義的字符后,退出程序。通過本次匯編程序的設(shè)計,使我進一步熟練掌握了匯編程序中的一些相關(guān)命令的使用。講書本理論知識在現(xiàn)實中得到實際的應(yīng)用,幫助我進一步的了解匯編語言編程的一些原理關(guān)鍵詞:數(shù)據(jù)段 中斷 子程序 代碼段 調(diào)用 主程序Abstract: This assembly language program to achieve through the screen displays multiple lines of beans(with . representation), with a mouth(with the character C that), the program runs, click the box, Mouth line by line starting from left to right or Pacman has always been to beans is finished click the box to stop or pause. This program is in the platform Windows xp MASM5 piled. This program provides a visual game interface, the corresponding operation by keyboard input, then they can execute the gam