全文预览

图形显示程序设计汇编语言课程设计

上传者:upcfxx |  格式:doc  |  页数:19 |  大小:0KB

文档介绍
B95,210DB110,114DB110,210DB130,135DB130,195DB145,165DSEGENDSSSEGSEGMENTSTACKDB200DUP(0)SSEGENDSCSEGSEGMENTASSUMECS:CSEG,DS:DSEG,SS:SSEGSTART:MAINPROCFARMOVAX,DSEGMOVDS,AXMOVAH,0;设置显示模式MOVAL,4;显示模式代号INT10H;10H号中断,显示I/O程序INPUT:LEADX,INTO1;要输出字符串首地址MOVAH,9;在标准输出上显示一个字符串INT21HMOVAH,08;不带回显键盘输入,出口参数alINT21HCMPAL,’s’JZSACMPAL,’z’JZZHENCMPAL,’y’JZYUACMPAL,’q’JZEXITMOVDX,OFFSETINFO2MOVAH,09INT21HSA:CALLSANJMPINPUTZHEN:CALLZHENGJMPINPUTYUA:CALLYUANJMPINPUTEXIT:MOVAH,EARPUSHAXPUSHBXPUSHCXPUSHDXMOVAH,0MOVAL,12HINT10H;显示I/O程序MOVAL,1A0:MOVDX,1MOVD3,1MOVCX,320A1:PUSHCXPUSHD3A2:MOVAH,12PUSHAXINT10H;显示I/XSUBD3,1JNZA2POPD3ADDD3,XJNEA1INCA1CMPAL,EARPUSHAXPUSHBXPUSHCXPUSHDXMOVAH,0FH;取当前显示模式INT10HMOVAH,0MOVAL,3INT10HMOVCX,1;字符数量MOVAH,2;置光标位置MOVDH,5;5行开始MOVDL,25;25列开始INT10H;*****光标向下动********LINE:MOVAH,2INT10H

收藏

分享

举报
下载此文档