【正文】
。二進制運算做清0操作,bx清0 mov cx,80*25 。調(diào)用07H設置屏幕滾屏顯示int 21H 。執(zhí)行跳轉(zhuǎn)mov cx,1 。講書本理論知識在現(xiàn)實中得到實際的應用,幫助我進一步的了解匯編語言編程的一些原理關(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 game program. When the space or the entire Board again after the game to start the game, you can also define the character keyboard input, exit the program. Through the design of this assembler so I further mastered some of the associated assembler mands. Theoretical knowledge about the book been in the real practical application, to help me better understand some of the principles of assembly language programmingKeywords: Data segment Interrupt Subroutine Code segment The main program一、 課程設計題目(分析)我選擇匯編語言與微機原理課程設計的題目是吃豆子程序。二、 設計思想簡述對于這個題目我的設計思想是:首先定義一個字符串,內(nèi)容為字符“C”的ASCⅡ值還有其他的一些相關(guān)信息,然后把屏幕設置多行豆子,或者布滿豆子,把“C”每往前走一格就把該位子上的豆子變?yōu)榭崭矜I,即“C”遇到非空格就跳轉(zhuǎn)到下一步;這樣一顆豆子就吃掉了,只要依次循環(huán)下去,就可以把豆子全部吃掉,或者中間按空格,暫停游戲。00H設置顯示模式mov al,02H 。不為空格則跳轉(zhuǎn)mov ax,