问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

8086交通灯设计 按照已给的8086仿真电路图编程实现8086控制交通灯。

发布网友 发布时间:2022-05-07 18:26

我来回答

1个回答

热心网友 时间:2023-11-07 23:44

CODE SEGMENT
FLASHTIME EQU 01H

;黄灯闪烁三次
OUT 00H,AL
MOV 03H,BL
START:
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay

MAIN:
OUT 21h,AL
MOV AX,0AH
CALL Delay

OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay

OUT 0CH,AL
MOV AX,10H
CALL Delay

OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay

JMP MAIN
CODE ENDS

Delay:
CALL Delay1S
DEC AX
CMP AX,0
JNZ Delay
RET

Delay1S:
MOV CX,04FFFH
Delayloop:
DEC CX
CMP CX,0
JNZ Delayloop
RET
END追问可以对每一小段都解释一下有什么用嘛QAQ
顺便说一下要怎么用啊!

热心网友 时间:2023-11-07 23:44

CODE SEGMENT
FLASHTIME EQU 01H

;黄灯闪烁三次
OUT 00H,AL
MOV 03H,BL
START:
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay

MAIN:
OUT 21h,AL
MOV AX,0AH
CALL Delay

OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay

OUT 0CH,AL
MOV AX,10H
CALL Delay

OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay

JMP MAIN
CODE ENDS

Delay:
CALL Delay1S
DEC AX
CMP AX,0
JNZ Delay
RET

Delay1S:
MOV CX,04FFFH
Delayloop:
DEC CX
CMP CX,0
JNZ Delayloop
RET
END追问可以对每一小段都解释一下有什么用嘛QAQ
顺便说一下要怎么用啊!

热心网友 时间:2023-11-07 23:44

CODE SEGMENT
FLASHTIME EQU 01H

;黄灯闪烁三次
OUT 00H,AL
MOV 03H,BL
START:
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay

MAIN:
OUT 21h,AL
MOV AX,0AH
CALL Delay

OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay

OUT 0CH,AL
MOV AX,10H
CALL Delay

OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay

JMP MAIN
CODE ENDS

Delay:
CALL Delay1S
DEC AX
CMP AX,0
JNZ Delay
RET

Delay1S:
MOV CX,04FFFH
Delayloop:
DEC CX
CMP CX,0
JNZ Delayloop
RET
END追问可以对每一小段都解释一下有什么用嘛QAQ
顺便说一下要怎么用啊!

热心网友 时间:2023-11-07 23:44

CODE SEGMENT
FLASHTIME EQU 01H

;黄灯闪烁三次
OUT 00H,AL
MOV 03H,BL
START:
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay
OUT 12h,AL;点亮黄灯
MOV AX,02H
CALL Delay
OUT 00h,AL;熄灭所有灯
MOV AX,02H
CALL Delay

MAIN:
OUT 21h,AL
MOV AX,0AH
CALL Delay

OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 22H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 20H,AL
MOV AX,FLASHTIME
CALL Delay

OUT 0CH,AL
MOV AX,10H
CALL Delay

OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 14H,AL
MOV AX,FLASHTIME
CALL Delay
OUT 04H,AL
MOV AX,FLASHTIME
CALL Delay

JMP MAIN
CODE ENDS

Delay:
CALL Delay1S
DEC AX
CMP AX,0
JNZ Delay
RET

Delay1S:
MOV CX,04FFFH
Delayloop:
DEC CX
CMP CX,0
JNZ Delayloop
RET
END追问可以对每一小段都解释一下有什么用嘛QAQ
顺便说一下要怎么用啊!

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
你见过最古老的东西是什么,有多少年历史 WORD中怎么输出稿纸模式word中怎么输出稿纸模式 女性尿检阴性是什么意思 阴性尿检是什么意思 尿检阴性是什么 win10如何查看电脑配置参数 win10怎样查看电脑配置参数 多地对公职人员提接种要求 亚马逊订单可以退回任何Kohl's商店,7月份生效 亚马逊提供免费退货,珠宝退货卖家要承担运费吗 新的亚马逊退货政策惹争议!官方解答来了 咏史怀古诗有哪些特点 请对比《石头城》和《西塞山怀古》的咏史怀古有什么不同? 对比《石头城》和《西塞山怀古》的咏史怀古有什么不同? 急需唐诗——怀古诗,含作者,年代,200字赏析 共10首 好像每个人多少都有一些皮肤问题,比如容易过敏、长痘、长斑等,都是什么原因造成的呢? 咏史怀古诗的常见意象及作用 皮肤暗黄,脸上有斑,毛孔大易长痘痘 《石头城》和《西塞山怀古》的咏史怀古有什么不同? 脸上皮肤开始长斑,特别容易上火还起痘 又长斑又长痘的皮肤属于什么性质的皮肤? 什么是咏史怀古诗 什么是咏史怀古诗? 为什么脸上的皮肤总是容易起痘或长斑,身上的皮肤却从不呢? 咏史怀古诗的分类 皮肤为什么会长痘长斑 咏史怀古诗的特点 什么样的女人,容易长斑长痘 间接抒情之咏史怀古的概念 脸上容易长痘痘出油也长斑是什么肤质 怀古类散文和咏史类散文有什么区别? 送别类散文是什么样的? 什么是边塞类散文? 8086的交通灯的电路图 微机原理8086与ADC0809,通过8255A连接的电路图问题 支持8086系统的工作芯片有哪些,各有什么作用`` 利用8086的RD,WR 和M/IO引脚,产生MEMR,MEMW和IORC, IORC,IOWC存储器读与写和IO读与写信号,画出电路图,( 8086系统的操作原理是什么? 微机原理 根据8086的内部结构,简述它的指令执行过程 请问如何用8086,8253,8255做一个60s倒计时的数码管显示?? 急求,希望有编程和电路图。 长鹿农庄门票大舞台地球村好不好玩 佛山的长鹿农庄有什么游玩攻略? 顺德长鹿农庄怎么样 长鹿农庄有没有夜场的,门票多少钱呢 顺德长鹿农庄现场有不含游戏币的票吗 长鹿农庄门票 长鹿农庄地球村主题曲,因为生命并不长久是哪首歌词 长鹿农庄门票攻略 4月江南好风光,带着缤越游长鹿农庄! 长鹿农庄动物童话王国的动物生活习惯 歌词 因为生命并不长久。死不过换一个身体爱你。这是长鹿农庄地球村的歌曲。谁知道是什么歌,哪里可以 日语中“您辛苦了”怎么说? “辛苦您拉”用日语怎么说?