资源描述:
《汇编语言实验报告.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、实验报告一、实验目的《汇编语言程序设计》是计算机专业的重要的专业基础课,通过本综合性、设计性实验使学生进一步巩固课堂所学,全面熟悉、掌握8088宏汇编语言程序设计的基本方法和技巧,进一步提高编写程序、阅读分析程序及上机操作、调试程序的能力。二、实验要求编写一个程序,让红心和严在(0,0)到(140,140)的斜线上移动。时钟的常驻内存程序,要求:右上角显示时分秒。三、实验原理分析1、INT10H是一个中断向量,是由BIOS对屏幕及显示器所提供的服务程序。2、先在数据段定义好“心”的图形,代码段选定
2、坐标,调用显示子程序显示在桌面上。3、将时间数值转换成ASCII码字符4、设置显示方式为40*25彩色文本方式开始5、MOVAH,2CH取系统时间四、流程图退出时间显示?显示时间初始化屏幕YN初始化动画起点坐标、颜色显示图像是否到达终点改变图像坐标否是结束五、源程序(加必要注释)和程序运行时的截屏STACKSEGMENTSTACKDW200DUP(?)STACKENDSDATASEGMENTSPACEDB1000DUP('')PATTERNDB24DUP(''),0C9H,8DUP(0CDH),0
3、BBH,6DUP('')DB24DUP(''),0BAH,8DUP(20H),0BAH,6DUP('')DB24DUP(''),0C8H,8DUP(0CDH),0BCH,6DUP('')DBUFFERDB8DUP(':'),12DUP('')DBUFFER1DB20DUP('')STRDB0DH,0AH,'INPUT"Q"TOQUIT!$'DELAY1DW0;延迟时间设置DELAY2DW0COLOURDB0;颜色设置S_MOVDB0;擦出或画图方式选择LINEDW0;行号ROWDW0;列号PIXD
4、B0;颜色XXDW0;坐标(xx,yy)YYDW0;Y_NUMDW0;行数L_NUMDW0;行数R_NUMDW0;列数P1DB0,0,00H,00H,00H,00H,0FH,00H,0F0H,01H,0FH,00H,0F0H,03H,0FH,00H,0F0H,07H;图形“严”DB0FH,30H,0F0H,0EH,0FH,38H,0F0H,1CH,0FH,1CH,0FFH,0F8H,0FH,0EH,0FFH,0F0HDB0FH,0FFH,0FFH,0E0H,0FH,0FFH,0F0H,00H,0F
5、H,0FFH,0F0H,00H,0FH,00H,0F0H,000HDB0FH,00H,0F0H,00H,0FH,00H,0F0H,00H,0FH,00H,0F0H,00H,0FH,00H,0F0H,00HDB0FH,00H,0F0H,00H,0FH,00H,0F0H,00H,0FH,0FFH,0F0H,00H,0FH,0FFH,0F0H,00HDB0FH,0FFH,0F0H,00H,0FH,0EH,0F0H,00H,0FH,1CH,0F0H,00H,0FH,38H,0F0H,00HDB0FH,30
6、H,0F0H,00H,0FH,00H,0F0H,00H,0FH,00H,0F0H,0H,0FH,00H,0F0H,00HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HP2DB0,0,00H,00H,00H,00H,00H,0FH,00H,00H,00H,03FH,0C0H,00H,00H,0FFH,0F0H,00H;图形“心”DB01H,0FFH,0F8H,00H,03H,0FFH,0FCH,00H,07H,0FF
7、H,0FEH,00H,0FH,0FFH,0FFH,00HDB0FH,0FFH,0FFH,80H,0FH,0FFH,0FFH,0C0H,07H,0FFH,0FFH,0E0H,03H,0FFH,0FFH,0F0HDB01H,0FFH,0FFH,0F8H,00H,0FFH,0FFH,0FCH,00H,7FH,0FFH,0FEH,00H,3FH,0FFH,0FFHDB00H,1FH,0FFH,0FFH,00H,3FH,0FFH,0FFH,00H,7FH,0FFH,0FEH,00H,0FFH,0FFH,0F
8、CHDB01H,0FFH,0FFH,0F8H,03H,0FFH,0FFH,0F0H,07H,0FFH,0FFH,0E0H,0FH,0FFH,0FFH,0C0HDB0FH,0FFH,0FFH,80H,0FH,0FFH,0FFH,00H,07H,0FFH,0FEH,00H,03H,0FFH,0FCH,00HDB01H,0FFH,0F8H,00H,00H,0FFH,0F0H,00H,00H,03FH,0C0H,00H,00H,0FH,00H,00HDATAENDSCODESEGMENTA