提交 75f8d429 创建 作者: 李川's avatar 李川 提交者: 宋海霞

创建实验项目模板

上级 412ea740
...@@ -2,3 +2,7 @@ ...@@ -2,3 +2,7 @@
path = 8086 path = 8086
url = https://www.codecode.net/engintime/Dream-Logic/Intel-classic-chips/8086.git url = https://www.codecode.net/engintime/Dream-Logic/Intel-classic-chips/8086.git
branch = master branch = master
[submodule "8253"]
path = 8253
url = https://lichuan@www.codecode.net/engintime/Dream-Logic/Intel-classic-chips/8253.git
branch = master
Subproject commit af1648b908fe50f042aaf8977c59aac4a92df815 Subproject commit 7138533acca68b0779d25164de1c454133c89f9b
8253 @ a762bfa8
Subproject commit a762bfa866ff493dc5e62dc97a74896fcabbb357
差异被折叠。
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<project id="3407fe40-bd78-42b5-914a-e269ea66b67f" name="8086-system" version="1"> <project id="f7b7a478-1178-41c4-afc3-b984e50cbad2" name="Lab003" version="1">
<files> <files>
<filefolder id="76cb3d2a-f92b-4283-a802-0d5d5fb9ad75" name="8086"> <filefolder id="76cb3d2a-f92b-4283-a802-0d5d5fb9ad75" name="8086">
...@@ -28,7 +28,23 @@ ...@@ -28,7 +28,23 @@
<file relativepath="IO\IO.dlsche"/> <file relativepath="IO\IO.dlsche"/>
<file relativepath="IO\README.md"/> <file relativepath="IO\README.md"/>
</filefolder> </filefolder>
<file relativepath="top.dlsche"/> <filefolder id="87277301-a25c-4ac0-b2b9-1985ae85bf54" name="8253">
<file relativepath="8253\8253.dlsche"/>
<file relativepath="8253\8254.pdf"/>
<file relativepath="8253\f0.dlsche"/>
<file relativepath="8253\f1.dlsche"/>
<file relativepath="8253\f2.dlsche"/>
<file relativepath="8253\f3.dlsche"/>
<file relativepath="8253\f4.dlsche"/>
<file relativepath="8253\f5.dlsche"/>
<file relativepath="8253\half.dlsche"/>
<file relativepath="8253\rc.dlsche"/>
<file relativepath="8253\re.dlsche"/>
<file relativepath="8253\README.md"/>
<file relativepath="8253\rw.dlsche"/>
</filefolder>
<file relativepath="8253_test.dlsche"/>
<file relativepath="mcu.dlsche"/>
<file relativepath="README.md"/> <file relativepath="README.md"/>
</files> </files>
......
;test ;8253测试
.text .text
BEGIN: ; 初始化8253,使计数器0工作在计数方式2,输出9分频波形
mov al, 0x1a mov al, 0x34 ; 选择计数器0,方式2,分频器
out 0x83, al ; 写控制字
UP: mov al, 9 ;
out 2, al out 0x80, al ; 先写低字节计数初值9
inc al mov al, 0 ;
cmp al, 0x84 out 0x80, al ; 再写高字节计数初值0
jnz UP
dec al
DOWN:
out 2, al
dec al
cmp al, 0x19
jnz DOWN
jmp BEGIN
没有这种文件类型的预览
0001 ;test 0001 ;8253测试
0002 .text 0002 .text
0003 0003
0004 BEGIN: 0004 ; 初始化8253,使计数器0工作在计数方式2,输出9分频波形
0005 10 01 00 1A mov al, 0x1a 0005 10 01 00 34 mov al, 0x34 ; 选择计数器0,方式2,分频器
0006 0006 13 4E 00 83 out 0x83, al ; 写控制字
0007 UP: 0007 16 01 00 09 mov al, 9 ;
0008 13 4E 00 02 out 2, al 0008 19 4E 00 80 out 0x80, al ; 先写低字节计数初值9
0009 16 78 00 inc al 0009 1C 01 00 00 mov al, 0 ;
0010 18 47 00 84 cmp al, 0x84 0010 1F 4E 00 80 out 0x80, al ; 再写高字节计数初值0
0011 1B 55 13 jnz UP 0011
0012 1D 79 00 dec al
0013
0014 DOWN:
0015 1F 4E 00 02 out 2, al
0016 22 79 00 dec al
0017 24 47 00 19 cmp al, 0x19
0018 27 55 1F jnz DOWN
0019 29 57 10 jmp BEGIN
0020
0021
0022
没有这种文件类型的预览
没有这种文件类型的预览
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论