当前位置:编程学习 > 汇编语言 >>

单片机高手和汇编语言高手请进!!!!!

下面是LED户外广告灯的汇编程序: .AREA HOME(ABS, CODE) .ORG 0x0000Start: MOV DPTR, #Table Loop: CLR A MOVC A, @A+DPTR CJNE A, #0x55, Loop1 AJMP Start Loop1: MOV P1, A MOV R6, #0x00 Delay: MOV R7, #0x00 DJNZ R7, . DJNZ R6, Delay INC DPTR AJMP Loop Table: .DB 0x81, 0x42, 0x24, 0x18, 0x24, 0x42, 0x81, 0x00 .DB 0x18, 0x24, 0x42, 0x81, 0x42, 0x24, 0x18, 0x00 .DB 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 .DB 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 .DB 0x00, 0xFF , 0x00, 0xFF .DB 0x55 麻烦大虾写一下流程图!!!
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,