网站导航网学 原创论文 原创专题 网站设计 最新系统 原创论文 论文降重 发表论文 论文发表 UI设计定制 论文答辩PPT格式排版 期刊发表 论文专题
返回网学首页
网学原创论文
最新论文 推荐专题 热门论文 论文专题
当前位置: 网学 > 交易代码 > 课程设计 > 正文

微机原理课程设计_动画心_汇编课程设计

论文降重修改服务、格式排版等 获取论文 论文降重及排版 论文发表 相关服务
微机原理课程设计_打字练习_汇编课程设计|精品课程网站设计|课程设计网报告总结心得
可爱小动画本动画先显示一些提示信息,然后按任意键进入,只见一个方框向中间由大变小,并留下痕迹,然后出现一个心,按空格重复出现心,按其他键将重复,按Q键退出程序,。
data segmentfull db 0buff1 db '   Welcome you to run this programme!'db '                                     'db '           *****Please press any key*****
设为首页 | 加入收藏 | 网学首页 | 原创论文 | 计算机原创
版权所有 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
Copyright 2008-2020 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号 常年法律顾问:王律师
buff2 db '       My heart beats with yours!'db '             ***** Please q to quit *****
  • 上一篇资讯: 微机原理课程设计_汽车小鸟动画_微机原理课程设计
  • 下一篇资讯: 微机原理课程设计_打字练习_汇编课程设计
  • 相关资讯

    网学推荐

    原创论文

    文章排行榜

    设为首页 | 加入收藏 | 网学首页 | 原创论文 | 计算机原创
    版权所有 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2020 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号 常年法律顾问:王律师
    data ends
    code 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 heart
    call cls_boxcall heartmov ah,08int 21hcmp al,'q'jz okcmp al,20hjz heart_call clearjmp sssok:
    retmain endp
    fill 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 endp
    fill_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 endp
    fill_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 endp
    draw_Line proc near               ;the procedure of draw a line
     
    push 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 endp
    xie_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 endp
    Mid_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 endp
    box 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 endp
    space proc near                    ;display a spacemov ah,02mov dl,' 'int 21hretspace endp
    return proc near                  ;回车mov ah,2mov dl,0ahint 21hmov dl,0dhint 21hretreturn endp
    text proc near                    ;显示文本信息mov bh,0mov dh,0mov dl,0mov ah,2int 10hmov dx,offset buff2mov ah,09int 21htext endp
    heart 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 draw_linemov cx,160                        ;draw_heartmov dx,89mov si,0mov bx,14call draw_linemov cx,161                        ;draw_heartmov dx,90mov si,0mov bx,12call draw_linemov cx,162                        ;draw_heartmov dx,91mov si,0mov bx,9call draw_linemov cx,163                        ;draw_heartmov dx,93mov si,0mov bx,5call draw_lineretheart endp
    delay proc near                   ;the procedure of delaypush cxpush dxmov dx,25dl2:
    mov cx,2801dl3:
    loop dl3dec dxjnz dl2pop dxpop cxretdelay endp
    clear proc near                   ;clearmov al,0mov bx,0mov cx,0mov dx,0line:
    mov ah,0chint 10hinc cxcmp cx,320jne linemov cx,0inc dxcmp dx,200jne lineretclear endp
    cls_box proc nearmov al,0mov bx,0mov cx,131mov dx,81s_line:
    mov ah,0chint 10hinc cxcmp cx,170jne s_linemov cx,131inc dxcmp dx,120jne s_lineretcls_box endp
    code endsend start
  • 上一篇资讯: 微机原理课程设计_汽车小鸟动画_微机原理课程设计
  • 下一篇资讯: 微机原理课程设计_打字练习_汇编课程设计
  • 相关资讯

    网学推荐

    原创论文

    文章排行榜

    设为首页 | 加入收藏 | 网学首页 | 原创论文 | 计算机原创
    版权所有 网学网 [Myeducs.cn] 您电脑的分辨率是 像素
    Copyright 2008-2020 myeducs.Cn www.myeducs.Cn All Rights Reserved 湘ICP备09003080号 常年法律顾问:王律师