资源描述:
《在屏幕上循环显示26个大写字母 3》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、;在屏幕上循环显示26个大写字母,每行10个,迂AIT+F1结束.;用直接写屏幕法.;***************************************DSEGSEGMENTMESS1DB'TestINT10HAH=9,AH=0AH,AH=0EH,AH=13H',13,10,'$'MESS2DB13,10,'Thankyou!',0DH,0AH,'$'MESS3DB'T',7,'h',7,'a',7,'n',7,'k',7,'',7,'y',7,'o',7,'u',7,'!',7MESS0
2、BDB50DUP(0)DSEGENDS;***************************************CSEGSEGMENTASSUMECS:CSEG,DS:DSEG;-------------------------------------START:MOVAX,DSEGMOVDS,AXMOVAH,0MOVAL,3INT10HMOVAH,5MOVAL,0INT10HMOVAH,6MOVAL,0MOVBH,07HMOVCX,0MOVDX,184FHINT10HMOVDX,OFFSETM
3、ESS1MOVAH,9INT21HMOVDH,2MOVDL,5MOVBH,0MOVAL,41HMOVCX,50LOP0:MOVAH,2INT10HMOVAH,09HPUSHCXMOVCX,1MOVBH,0MOVBL,07INT10HPOPCXINCDLINCALCMPAL,91JBNEXT0SUBAL,26NEXT0:LOOPLOP0MOVDH,3MOVDL,5MOVCX,50LOP1:MOVAH,2INT10HMOVAH,0AHPUSHCXMOVCX,1MOVBH,0INT10HPOPCXINCDL
4、INCALCMPAL,91JBNEXT1SUBAL,26NEXT1:LOOPLOP1MOVDH,4MOVDL,5MOVBH,0MOVAH,2INT10HMOVCX,50LOP2:MOVAH,0EHINT10HINCALCMPAL,91JBNEXT2SUBAL,26NEXT2:LOOPLOP2OVER:MOVAX,DSMOVES,AXMOVAH,13HMOVAL,2MOVCX,10MOVDH,6MOVDL,20MOVBP,OFFSETMESS3INT10HMOVAH,13HMOVAL,1MOVBL,74
5、HMOVCX,10MOVDH,7MOVBP,OFFSETMESS2+5INT10HMOVDX,OFFSETMESS2MOVAH,9INT21HMOVAX,4C00HINT21HCSEGENDS;***************************************ENDSTART