Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
8
8086
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
赵鹏翀-zpc
8086
提交
773e5b3c
提交
773e5b3c
12月 04, 2018
创建
作者:
李川
提交者:
李川
12月 04, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改8086芯片
上级
8322ec68
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
24 行增加
和
11 行删除
+24
-11
8086.dlsche
8086.dlsche
+0
-0
8086.dlsche.svg
8086.dlsche.svg
+0
-0
CU.dlsche
CU.dlsche
+0
-0
CU.dlsche.svg
CU.dlsche.svg
+0
-0
README.md
README.md
+4
-2
microasm.c
microasm.c
+12
-1
microasm.exe
microasm.exe
+0
-0
rom.dbg
rom.dbg
+0
-0
rom.lst
rom.lst
+0
-0
rom.masm
rom.masm
+6
-6
rom.rxm
rom.rxm
+2
-2
没有找到文件。
8086.dlsche
浏览文件 @
773e5b3c
没有这种文件类型的预览
8086.dlsche.svg
浏览文件 @
773e5b3c
这个 源代码变更 因为 太大 而不能显示。 你可以
浏览blob
。
CU.dlsche
浏览文件 @
773e5b3c
没有这种文件类型的预览
CU.dlsche.svg
浏览文件 @
773e5b3c
这个 源代码变更 因为 太大 而不能显示。 你可以
浏览blob
。
README.md
浏览文件 @
773e5b3c
# 说明
Intel 8086 处理器
# Datasheet
[
8086.pdf
](
8086.pdf
)
# 原理图

\ No newline at end of file

\ No newline at end of file
microasm.c
浏览文件 @
773e5b3c
...
...
@@ -94,6 +94,7 @@ const char* alu_not_keyword = "alu_not";
const
char
*
al_flag_keyword
=
"al_flag"
;
const
char
*
shift_flag_keyword
=
"shift_flag"
;
// 访问主存或外设的操作数
const
char
*
pc_main_memory_keyword
=
"[pc]"
;
const
char
*
jz_mar_keyword
=
"jz[mar]"
;
...
...
@@ -319,6 +320,7 @@ struct KEYWORD_FUNCTION_ENTRY
// 指令名称
const
char
*
fetch_instruction_keyword
=
"fetch"
;
const
char
*
check_instruction_keyword
=
"check"
;
const
char
*
hold_instruction_keyword
=
"hold"
;
const
char
*
cli_instruction_keyword
=
"cli"
;
const
char
*
sti_instruction_keyword
=
"sti"
;
const
char
*
inta_instruction_keyword
=
"inta"
;
...
...
@@ -398,7 +400,7 @@ void parse_fetch(int line_num)
}
// check
// check
irq
void
parse_check
(
int
line_num
)
{
unsigned
long
ul
=
0xffffffcb
;
...
...
@@ -406,6 +408,14 @@ void parse_check(int line_num)
machine_code_address
+=
4
;
}
// hold DMA
void
parse_hold
(
int
line_num
)
{
unsigned
long
ul
=
0xffffd5db
;
memcpy
(
&
machine_code
[
machine_code_address
],
&
ul
,
4
);
machine_code_address
+=
4
;
}
// cli
void
parse_cli
(
int
line_num
)
{
...
...
@@ -534,6 +544,7 @@ struct KEYWORD_FUNCTION_ENTRY keyword_function_table[] =
,{
&
fetch_instruction_keyword
,
parse_fetch
}
,{
&
check_instruction_keyword
,
parse_check
}
,{
&
hold_instruction_keyword
,
parse_hold
}
,{
&
dup_instruction_keyword
,
parse_dup
}
,{
&
cli_instruction_keyword
,
parse_cli
}
,{
&
sti_instruction_keyword
,
parse_sti
}
...
...
microasm.exe
浏览文件 @
773e5b3c
没有这种文件类型的预览
rom.dbg
浏览文件 @
773e5b3c
没有这种文件类型的预览
rom.lst
浏览文件 @
773e5b3c
差异被折叠。
点击展开。
rom.masm
浏览文件 @
773e5b3c
...
...
@@ -14,7 +14,7 @@ path [pc], ir
inc pc
path [pc], rd
inc pc
check irq
check irq
;查询硬中断
reset upc
dup 1, null
...
...
@@ -306,7 +306,7 @@ reset upc
dup 6, null
;40.
;40.
dup 8, null
;41.
...
...
@@ -542,9 +542,10 @@ path alu_sub, a
path al_flag, flag
inc pc
check irq
hold DMA ;查询DMA请求
reset upc
dup
6
, null
dup
5
, null
;73. cmp reg, reg
inc pc
...
...
@@ -963,8 +964,7 @@ path sp, a
path alu_dec, sp
path sp, mar
path pc, [mar]
; IF标志置位,开中断,允许中断嵌套
sti
; 获取中断号中断服务程序入口地址
inta
dup 1, null ;插入空闲周期
...
...
@@ -973,7 +973,7 @@ path inta, mar ;读取中断号并送入地址寄存器中
path [mar], pc
reset upc
dup
1
, null
dup
2
, null
;120. inc reg
inc pc
...
...
rom.rxm
浏览文件 @
773e5b3c
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG߿GGGGGGGGGGGGGG?_GG߿GGGGG?G?GGGG߿G߿߿GG
\ No newline at end of file
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG߿GGGGGGGGGGGGGG?_GG߿GGGGG?G?GGGG߿G߿߿GG
\ No newline at end of file
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论