資源描述:
《微機(jī)原理課程設(shè)計(jì)_汽車(chē)小鳥(niǎo)動(dòng)畫(huà)_微機(jī)原理課程設(shè)計(jì)-課程設(shè)計(jì)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、微機(jī)原理課程設(shè)計(jì)_汽車(chē)小鳥(niǎo)動(dòng)畫(huà)_微機(jī)原理課程設(shè)計(jì)-課程設(shè)計(jì)微機(jī)原理課程設(shè)計(jì)_汽車(chē)小鳥(niǎo)動(dòng)畫(huà)_微機(jī)原理課程設(shè)計(jì)
2、精品課程網(wǎng)站設(shè)計(jì)
3、課程設(shè)計(jì)網(wǎng)報(bào)告總結(jié)心得運(yùn)行可執(zhí)行程序CAR.exe,選擇1,小鳥(niǎo)飛過(guò);選擇2,汽車(chē)開(kāi)過(guò);選擇3,退出。DATA??SEGMENTINFO1?DB0DH,0AH,'INPUT1,2,OR3:(1:bird,2:car,3:exit)$'BUFA??DB200??????DB???????DB200DUP(0)BUFB??DB200DUP(?)BIRD??DB76H,10,0,0?????????????;小鳥(niǎo)的字符圖形表????
4、??DB0C4H,07,0,1??????DB76H,10,-2,2??????DB0C4H,07,0,1??????DB76H,10,-2,2??????DB0C4H,07,0,1??????DB76H,10,-2,2??????DB0C4H,07,0,1??????DB76H,10,2,-2??????DB0C4H,07,0,1??????DB76H,10,2,-2??????DB0C4H,07,0,1??????DB76H,10,2,-2??????DB0C4H,07,0,1CAR???DB7??????????????????;小汽車(chē)的字符圖
5、形表??????DB52H,7,0,0??????DB0B1H,7,0,1??????DB0DBH,7,0,1??????DB0DBH,7,0,1??????DB4FH,7,1,0??????DB4FH,7,0,-3??????DB2,7,-2,1??????CHAR_CNTDW???????POINTERDW???????LINE_ONDB???????COL_ONDB?DATA??ENDSSTACK?SEGMENTstack??????DB200DUP(0)STACK?ENDSCODE??SEGMENT??????ASSUMECS:CODE,DS
6、:DATA,SS:STACK?start:movax,data??????movds,ax??????movah,0?????????????;設(shè)置顯示方式為320*200彩色圖形方式??????moval,4??????int10h??????leadx,info1?????????;在顯示器上顯示字符串提示信息?????????????movah,9??????int21h??????movah,0?????????????;從鍵盤(pán)讀取字符到AL寄存器??????int16h??????CMPAL,31H???????????;比較AL是否等于1
7、??????JNE?A??????CALLXIAO??A:?CMPAL,32H???????????;比較AL是否等于2????????????????JNE?B??????CALLQICHE??B:?CMPAL,33H???????????;比較AL是否等于3??????JNESTART??????MOVAH,4CH???????????;終止當(dāng)前程序并返回調(diào)用程序??????INT21HCLEAR?MACROpch,pcl,pdh,pdl,pbh;清屏宏定義??????MOVAH,0??????MOVAL,4??????INT10H??????M
8、OVAH,6?????????????;調(diào)用6號(hào)功能??????MOVAL,0?????????????;設(shè)置整個(gè)屏幕為空白??????MOVCH,pch?????????????????MOVCL,pcl???????????;窗口左上角(0行,0列)??????MOVDH,pdh??????MOVDL,pdl???????????;窗口右下角(24行,79列)??????MOVBH,pbh???????????;正常屬性顯示??????INT10HENDMxiao??proc???????????????????;小鳥(niǎo)子程序??????PUSH?
9、DS??????MOVAX,0??????PUSHAX??????MOVAX,DATA??????MOVDS,AX??????MOVAH,0??????MOVAL,4??????INT10H??????MOVAH,0BH???????????;設(shè)置背景色??????MOVBH,0??????MOVBL,1??????INT10H??????MOVAH,0BH???????????;設(shè)置彩色組??????MOVBH,1??????MOVBL,1??????INT10H??????CLEAR0,0,24,79,7??????MOVAH,0FH??????
10、?????;讀當(dāng)前顯示狀態(tài)??????INT10H??????MOVDH,10??????MOVDL,0BE