




已阅读5页,还剩11页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
微机原理课程设计_动画心_汇编课程设计-课程设计微机原理课程设计_打字练习_汇编课程设计|精品课程网站设计|课程设计网报告总结心得可爱小动画本动画先显示一些提示信息,然后按任意键进入,只见一个方框向中间由大变小,并留下痕迹,然后出现一个心,按空格重复出现心,按其他键将重复,按Q键退出程序,。data segmentfull db 0buff1 db Welcome you to run this programme!db db *Please press any key*$buff2 db My heart beats with yours!db * Please q to quit *$data endscode segmentmain proc farassume cs:code,ds:datastart:push dssub ax,axpush axmov ax,datamov ds,axmov ah,00mov al,04int 10hmov ah,0bhmov bh,00mov bl,1int 10hmov ah,0bhmov bh,1mov bl,2int 10hmov dx,offset buff1 ;显示提示信息mov ah,09int 21hmov ah,08int 21hcall clear ;clssss:call text ;display the textmov di,2mov al,1 ;draw the big boxmov cx,70mov dx,20mov bx,160call boxmov cx,71mov dx,21mov bx,158again:mov al,1mov di,0call boxcall delaymov al,0mov di,0call boxinc cxinc dxsub bx,2cmp cx,94jnz againmov di,0 ;draw the 2nd boxmov cx,95mov dx,45mov al,1mov bx,110call boxmov cx,96mov dx,46mov bx,108again_00:mov al,1mov di,0call boxcall delaycall delaymov al,0mov di,0call boxinc cxinc dxsub bx,2cmp cx,114jnz again_00mov cx,115 ;draw the 3rd boxmov dx,65mov al,1mov bx,70call boxmov cx,116mov dx,66mov bx,68again_01:mov al,1mov di,0call boxcall delaycall delaymov al,0mov di,0call boxinc cxinc dxsub bx,2cmp cx,129jnz again_01mov di,2mov al,1 ;draw the small boxmov cx,130mov dx,80mov bx,40call boxmov di,2mov al,3 ;对角线mov si,0mov cx,71mov dx,21mov bx,59call xie_linemov cx,171mov dx,121mov bx,59call xie_linemov si,1mov cx,71mov dx,179mov bx,59call xie_linemov cx,171mov dx,79mov bx,59call xie_linemov cx,150 ;十字线mov dx,20mov si,0mov bx,60call draw_linemov cx,150mov dx,120mov bx,60call draw_linemov cx,70mov dx,100mov si,1mov bx,60call draw_linemov cx,170mov dx,100mov bx,60call draw_linemov si,1mov cx,70mov dx,60mov bx,60call mid_linemov cx,170mov dx,110mov bx,60call mid_linemov si,2mov cx,110mov dx,20mov bx,30call mid_linemov cx,160mov dx,120mov bx,30call mid_linemov si,3mov cx,70mov dx,140mov bx,60call mid_linemov cx,170mov dx,90mov bx,60call mid_linemov si,4mov cx,110mov dx,180mov bx,30call mid_linemov cx,160mov dx,80mov bx,30call mid_linemov di,0mov al,1 ;draw the big box againmov cx,70mov dx,20mov bx,160call boxmov di,0mov al,1 ;draw the small box againmov cx,130mov dx,80mov bx,40call boxmov di,0mov cx,95mov dx,45mov al,1mov bx,110call boxmov cx,115mov dx,65mov al,1mov bx,70call boxmov di,1 ;fillcall fillcall fill_2call fill_3mov cx,149 ;boldmov dx,120mov al,2mov bx,60mov si,0call draw_linemov cx,151mov dx,120mov al,2mov bx,60mov si,0call draw_lineheart_: ;draw the heartcall cls_boxcall heartmov ah,08int 21hcmp al,qjz okcmp al,20hjz heart_call clearjmp sssok:retmain endpfill proc near ;the procedure of fillmov full,0mov al,5mov cx,160mov dx,121mov si,0mov bx,60fill_Y:push cxpush dxpush bxcall draw_linepop bxpop dxpop cxsub bx,2inc cxadd dx,2inc fullcmp full,30jne fill_yretfill endpfill_2 proc nearmov full,0mov al,5mov cx,140mov dx,121mov si,0mov bx,60fill_Y1:push cxpush dxpush bxcall draw_linepop bxpop dxpop cxsub bx,2dec cxadd dx,2inc fullcmp full,30jne fill_y1retfill_2 endpfill_3 proc nearmov al,1mov full,0mov si,0mov cx,140mov dx,121mov bx,60re_fill:push bxpush cxpush dxcall draw_linepop dxpop cxpop bxinc cxinc fullcmp full,9jne re_fillmov full,0mov cx,159mov dx,121mov bx,60re_fill2:push bxpush cxpush dxcall draw_linepop dxpop cxpop bxdec cxinc fullcmp full,9jne re_fill2retfill_3 endpdraw_Line proc near ;the procedure of draw a linepush bxcmp si,0jz V_line1add bx,cxH_line:mov ah,0chint 10hcmp di,0jz aa0cmp di,1jz aa1call delayaa1:call delayaa0:inc cxcmp cx,bxjne H_linejmp exit_lineV_line1:add bx,dxV_line:mov ah,0chcmp di,0jz bb0cmp di,1jz bb1call delaybb1:call delaybb0:int 10hinc dxcmp dx,bxjne V_lineexit_line:pop bxretdraw_Line endpxie_line proc near ;the procedure of draw a xie_lineadd bx,cxcmp si,1jz xieline_1xieline_0:mov ah,0chint 10hinc dxinc cxcmp cx,bxjne xieline_0jmp exit_xiexieline_1:mov ah,0chint 10hdec dxinc cxcmp cx,bxjne xieline_1exit_xie:retxie_line endpMid_line proc near ;draw a xie_lineadd bx,cxcmp si,2jz midline_2cmp si,3jz midline_3cmp si,4jz midline_4midline_1:mov ah,0chint 10hinc dxadd cx,2cmp cx,bxjne midline_1jmp exit_linesmidline_2:mov ah,0chint 10hadd dx,2inc cxcmp cx,bxjne midline_2jmp exit_linesmidline_3:mov ah,0chint 10hdec dxadd cx,2cmp cx,bxjne midline_3jmp exit_linesmidline_4:mov ah,0chint 10hsub dx,2inc cxcmp cx,bxjne midline_4exit_lines:retmid_line endpbox proc near ;draw a boxpush cxpush dxpush cxpush dxpush cxpush dxpush cxpush dxmov si,1call draw_line ;toppop dxpop cxadd cx,bxmov si,0call draw_line ;rightpop dxpop cxmov si,0call draw_line ;leftpop dxpop cxmov si,1add dx,bxcall draw_line ;bottompop dxpop cxretbox endpspace proc near ;display a spacemov ah,02mov dl, int 21hretspace endpreturn proc near ;回车mov ah,2mov dl,0ahint 21hmov dl,0dhint 21hretreturn endptext proc near ;显示文本信息mov bh,0mov dh,0mov dl,0mov ah,2int 10hmov dx,offset buff2mov ah,09int 21htext endpheart proc nearmov cx,136 ;draw_heartmov dx,93mov si,0mov bx,5mov al,2call draw_linemov cx,137 ;draw_heartmov dx,91mov si,0mov bx,9call draw_linemov cx,138 ;draw_heartmov dx,90mov si,0mov bx,12call draw_linemov cx,139 ;draw_heartmov dx,89mov si,0mov bx,14call draw_linemov cx,140 ;draw_heartmov dx,88mov si,0mov bx,16call draw_linemov cx,141 ;draw_heartmov dx,88mov si,0mov bx,17call draw_linemov cx,142 ;draw_heartmov dx,87mov si,0mov bx,19call draw_linemov cx,143 ;draw_heartmov dx,87mov si,0mov bx,20call draw_linemov cx,144 ;draw_heartmov dx,87mov si,0mov bx,21call draw_linemov cx,145 ;draw_heartmov dx,88mov si,0mov bx,21call draw_linemov cx,146 ;draw_heartmov dx,88mov si,0mov bx,22call draw_linemov cx,147 ;draw_heartmov dx,89mov si,0mov bx,22call draw_linemov cx,148 ;draw_heartmov dx,90mov si,0mov bx,22call draw_linemov cx,149 ;draw_heartmov dx,91mov si,0mov bx,22call draw_linemov cx,150 ;1draw_heartmov dx,91mov si,0mov bx,22call draw_linemov cx,151 ;draw_heartmov dx,90mov si,0mov bx,22call draw_linemov cx,152 ;draw_heartmov dx,89mov si,0mov bx,22call draw_linemov cx,153 ;draw_heartmov dx,88mov si,0mov bx,22call draw_linemov cx,154 ;draw_heartmov dx,88mov si,0mov bx,21call draw_linemov cx,155 ;draw_heartmov dx,87mov si,0mov bx,21call draw_linemov cx,156 ;draw_heartmov dx,87mov si,0mov bx,20call draw_linemov cx,157 ;draw_heartmov dx,87mov si,0mov bx,19call draw_linemov cx,158 ;draw_heartmov dx,88mov si,0mov bx,17call draw_linemov cx,159 ;draw_heartmov dx,88mov si,0mov bx,16call dra
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 纸制品行业生产流程优化与质量控制考核试卷
- 电子出版物批发商的跨国合作与海外市场拓展考核试卷
- 节能型纺织机械驱动系统考核试卷
- 肥料产业国际合作与交流考核试卷
- 宝石检测设备的技术进展与准确性考核试卷
- 矿产勘查环境保护与生态文明建设考核试卷
- 零售行业商品识别系统租赁与培训协议
- 通信设备质量检测与纠纷解决补充协议
- 医疗废物高温处理厂项目投资合作协议书
- 在线教育平台虚拟教学场景设计与承包协议
- 2025专利代理师笔试考试题库带答案
- 第3课《校园文化活动我参与》教案 海燕版综合实践活动 三年级下册
- 2025年保密教育线上培训考试试题及答案
- 大学生职业规划大赛《运动康复专业》生涯发展展示
- 2025届百师联盟高三联考模拟预测(冲刺二)语文试题含答案
- 夜班巡查记录表
- 潜山油气藏勘探与开发
- 水利水电工程土工合成材料应用技术规范
- 医药物流项目可行性研究报告
- 乳腺癌患者生命质量测定量表FACT
- 本溪市生活垃圾焚烧发电项目可行性研究报告
评论
0/150
提交评论