微机原理课程设计跑马灯

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

微机原理课程设计走马灯运用8086最小模式和8255等芯片设计出一个跑马灯电路,要求至少有5中花式,在ISIS7Professional软件中运行。设计电路图如图所示:源代码DATASEGMENTDATAENDSCODESEGMENTASSUMECS:CODE,DS:DATASTART:MOVAX,DATAMOVDS,AXMOVAL,10010000BOUT96H,ALA0:INAL,90HNOTALMOVBL,ALOUT92H,ALCMPAL,1JNZA3A2:MOVDL,AL;第一个开关实现从上至下的流水OUT92H,ALINAL,90HNOTALCMPAL,BLJNZA0MOVCX,50000A1:LOOPA1MOVAL,DLROLAL,1JMPA2A3:CMPAL,2;实现第二个开关从下至上的流水JNZA6MOVAL,80HA5:MOVDL,ALOUT92H,ALMOVCX,50000A4:LOOPA4INAL,90HNOTALCMPAL,BLJNZA0MOVAL,DLRORAL,1JMPA5A6:CMPAL,4;第三个开关实现相隔的两个灯自上而下流水JNZA9MOVAL,05HA8:MOVDL,ALOUT92H,ALMOVCX,20000A7:LOOPA7INAL,90HNOTALCMPAL,BLJNZA0MOVAL,DLROLAL,1JMPA8A9:CMPAL,8;第四个开关实现相隔的两个灯从下而上流水JNZA12MOVAL,0A0HA11:MOVDL,ALOUT92H,ALMOVCX,20000A10:LOOPA10INAL,90HNOTALCMPAL,BLJNZA0MOVAL,DLRORAL,1JMPA11A12:CMPAL,10HJNZA17A16:MOVAL,18H;第五个开关实现从中间向两边流水A14:MOVDL,ALOUT92H,ALMOVCX,20000A13:LOOPA13INAL,90HNOTALCMPAL,BLJNZA0MOVAL,DLCMPAL,81HJZA16ANDAL,0F0HMOVCX,0MOVCH,ALROLCH,1MOVAL,DLANDAL,0FHMOVCL,ALRORCL,1ADDCH,CLMOVAL,CHJMPA14A17:CMPAL,20H;第六个开关实现从两边向中间流水JNZA0A19:MOVAL,81HA20:MOVDL,ALOUT92H,ALMOVCX,20000A18:LOOPA18INAL,90HNOTALCMPAL,BLJNZA0MOVAL,DLCMPAL,18HJZA19ANDAL,0F0HMOVCX,0MOVCH,ALRORCH,1MOVAL,DLANDAL,0FHMOVCL,ALROLCL,1ADDCH,CLMOVAL,CHJMPA20RETCODEENDSENDSTART运行后程序如图所示:

1 / 9
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功