51/AVR单片机技术驿站!  <在线翻译>     便利工具    特色网址   无弹窗、无插件的绿色站点...  英才招聘   学历查询  喜欢>>收藏我站 

当前位置:首页 > 单片机源码 > 详细内容
8*8点阵左移并显示 I LOVE U [汇编]
发布时间:2009/6/4  阅读次数:940  字体大小: 【】 【】【

作者:    来源:互联网

               ORG       00H
START:
               MOV       A,#00
               MOV       P0,A
               CALL     DIS
               CALL     DELAY
               JMP       START
DIS: MOV R2,#25
MOV 20H,#00
D4:         MOV       R4,#00H
MOV R1,#0F5H
D5:         MOV       R6,#08
               MOV       R0,20H
D2:         CALL     READ1
               INC       R4
               DJNZ     R6,D2
               MOV       R4,#00H
               DJNZ     R1,D5
               MOV       20H,R0
               DJNZ     R2,D4
               RET
READ1:   MOV       A,R4
               MOV       P2,A
               MOV       A,R0
               MOV       DPTR,#TABLE
               MOVC     A,@A+DPTR
               MOV       P0,A
               INC       R0
               MOV       R3,#100
               DJNZ     R3,$
               MOV       A,#00H
               MOV       P0,A
               RET
DELAY:   MOV       R3,#200
D7:         MOV     R5,#248
               DJNZ     R5,$
               DJNZ     R3,D7
               RET


  

TABLE:
DB   00H,00H,00H,00H,00H,00H,00H,81H
DB 00H,00H,00H,00H,00H,00H,81H,0FFH
DB   00H,00H,00H,00H,00H,81H,0FFH,81H
DB   00H,00H,00H,00H,81H,0FFH,81H,00H
DB   00H,00H,00H,81H,0FFH,81H,00H,00H
DB   00H,00H,81H,0FFH,81H,00H,00H,00H
DB   00H,81H,0FFH,81H,00H,00H,00H,38H
DB   81H,0FFH,81H,00H,00H,00H,38H,7CH
DB   0FFH,81H,00H,00H,00H,38H,7CH,7EH
DB   81H,00H,00H,00H,38H,7CH,7EH,3FH
DB   00H,00H,00H,38H,7CH,7EH,3FH,7EH
DB   00H,00H,38H,7CH,7EH,3FH,7EH,7CH
DB   00H,38H,7CH,7EH,3FH,7EH,7CH,38H
DB   38H,7CH,7EH,3FH,7EH,7CH,38H,00H
DB   7CH,7EH,3FH,7EH,7CH,38H,00H,00H
DB   7EH,3FH,7EH,7CH,38H,00H,00H,00H
DB   3FH,7EH,7CH,38H,00H,00H,00H,0FCH
DB   7EH,7CH,38H,00H,00H,00H,0FCH,02H
DB   7CH,38H,00H,00H,00H,0FCH,02H,01H
DB   38H,00H,00H,00H,0FCH,02H,01H,01H
DB   00H,00H,00H,0FCH,02H,01H,01H,02H
DB 00H,00H,0FCH,02H,01H,01H,02H,0FCH
DB   00H,0FCH,02H,01H,01H,02H,0FCH,00H
DB   0FCH,02H,01H,01H,02H,0FCH,00H,00H
DB   02H,01H,01H,02H,0FCH,00H,00H,00H


  

end

我要评论
  • 匿名发表
  • [添加到收藏夹]
  • 发表评论:(匿名发表无需登录,已登录用户可直接发表。) 登录状态:未登录
最新评论
所有评论[0]
    暂无已审核评论!

网站导航 管理登陆 ┊ 免责声明 问题反馈  友链说明
本站部分内容来自网络共享资源,如有冒犯您的权利请来信告之删除或纠正!
不得对本站进行复制、盗链或镜像,转载内容须获得同意或授权;欢迎友情链接、站务合作!

    我要报警 Alexa
 mcusy_cn#126.com (请把#改成@) 交流:522422171
本站学习交流群:138..158(高级群1-)、77930286(高级群2)、61804809(群3)
Copyright© MCUSY All Rights Reserved
本站网警备案号: WZ36040002485
  ICP备案证书号:粤ICP备09034963号