资源描述:
《微机原理实验报告五》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、微型计算机原理与接口技术实验报告、实验内容实验5动画编程设计内容提要掌握DOS中断调用、BIOS中断调用方法,学习字符的显示、动作间的延吋设计,光标的移动。实验题目编写在屏幕上显示小人像的程序,编程实现动画图像,实现小人像的移动。实验的源代码(.asm文件内容)第一部分:编写在屏幕上显示小人像的程序如下所示:PDATASEGMENTCHRTABDW5DB01,0,0,0DBH,1,0,13H,1,0DB2FH,-1,-1,5CH,0,2PDATAENDSSTACKSSEGMENTPARASTACK'STACK5DB100DUP(?)STACKSENDSCODESSEGMENTASSUMECS
2、:CODES,DS:PDATAPICTUREPROCFARSTART:PUSHDSMOVAX,0PUSHAXMOVAX,PDATAMOVDS,AXSTIMOVAL,02MOVAH,0TNT10HLEADI,CHRTABMOVCX,[DI]MOVDH,10MOVDL,40ADDDT,2NEXT:ADDDII,[DI+1]ADDDL,[Dl+2]MOVAH,2INT10HMOVAL,[DT]PUSHCXMOVCX,1MOVAH,10INT1011POPCXADDDI,3LOOPNEXTRETPICTUREENDPCODESENDSENDSTART第二部分:编程实现动画图像,实现小人像的移动程序如
3、下:DATASSEGMENTCHRTABDW5DB01,0,0,ODBII,1,0,1311,1,0DB2FH,-1,-1,5CH,0,2MMDB40DATASENDSSTACKSSEGMENTDB100DUP(?)STACKSENDSCODESSEGMENTASSUMECS:CODES,DS:DATAS,SS:STACKSPICTUREPROCFARSTART:MOVAX,DATASMOVDS,AXSTIMOVAL,02MOVAll,0INT10HDONGHUA:MOVDI,OFFSETCHRTABMOVCX,[DI]MOVDH,10MOVDL,MMADDDI,2NEXT:ADDDH,[D
4、I+1]ADDDL,[DI+2]MOVAH,2INT1011MOVAL,[DI]PUSHCXMOVCX,1MOVAH,10INT10HPOPCXADDDT,3LOOPNEXTCALLFARPTRDELAYMOVDI,OFFSETCHRTABMOVCX,[DI]MOVDH,10MOVDL,MMADDDI,2NEXT2:ADDDH,[DI+1]ADDDL,[DI+2]MOVAH,2TNT10HMOVAL,OOHpusr1CXMOVCX,1MOVAH,10TNT10HPOPCXADDDI,3LOOPNEXT2MOVBL,MMADDBL,5MOVMM,BLJMPDONGHUAMOVAH,4CHINT
5、21HPICTUREENDPDELAYPROC:FARPUSHAXPUSHCXPUSHiDXPUSHDIMOVBX,6666DEL:MOVCX,8888WAI:LOOP•WAIDECBXJNZDELPOPDIPOPDXPOPCXPOPAXRETDELAYENDPCODESENDSENDSTART三.实验的(显示)结果第一部分CV调试结果:zC:VIin)0VSsysteM32od.exeSearchRunDataOptionsCallsWind。忖s—[3J0A34:00020A34:00060A34:00090A34:000B0A34:000D0A34:00110A34:00140A
6、34:00160A34:00180A34:001A0A34:001CFF9F009AF0FE1DF0960219089703190856012104D909010101000101CLCCDD?rAOODRRN?UCLLAOOA7.DDDDDDAAA—[510A34:00000A34:000C0A34:0018CD20FF1908970101019F0300CS:XCHG06F1F5FyrA810900me091R010IPDWORDPTR[BX-6600JBVTEPTR[DI]AX,SIBL,BYTEPTBLBX*DI]BYTEPTR[BXT903]』LBYTEPTR[BP说:UDLWOR
7、DPTR[SIJJXl=[7IregisterATWORDWORDWORD0D1F:12FsDE1FF0F04FF0FTTTppP[BX+DI[BX*SIKAXLBX*DI],AX69F9DF29F00F=;f.U=l**=u0©©yyyyyyXXXXPPIISSSSSSPLabcdsbsddefgscifeeeeeeeeEE0000000000000000000000645I5I5I5I5I5I5I5000