提交 b3ed2fca 创建 作者: 赵鹏翀's avatar 赵鹏翀

修改了一些小问题

上级 d84585af
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<svg height="672" version="1.1" width="979" xmlns="http://www.w3.org/2000/svg">
<rect fill="#80ff80" height="500" stroke="#800000" stroke-width="1" width="700" x="254" y="147"/>
<text alignment-baseline="after-edge" fill="#000080" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="254" y="47">MUL_unit</text>
<text alignment-baseline="after-edge" fill="#000080" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="254" y="97">MUL_unit.dlsche</text>
<polygon fill="#ffff80" points="254 247, 279 222, 329 222, 354 247, 329 272, 279 272, 254 247" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="364" y="247">Xin</text>
<polygon fill="#ffff80" points="254 347, 279 322, 329 322, 354 347, 329 372, 279 372, 254 347" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="364" y="347">Yin</text>
<polygon fill="#ffff80" points="254 447, 279 422, 329 422, 354 447, 329 472, 279 472, 254 447" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="364" y="447">Cin</text>
<polygon fill="#ffff80" points="254 547, 279 522, 329 522, 354 547, 329 572, 279 572, 254 547" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="364" y="547">Pin</text>
<polygon fill="#ffff80" points="954 247, 929 222, 879 222, 854 247, 879 272, 929 272, 954 247" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="744" y="247">Pout</text>
<polygon fill="#ffff80" points="954 347, 929 322, 879 322, 854 347, 879 372, 929 372, 954 347" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="744" y="347">Cout</text>
<polygon fill="#ffff80" points="954 447, 929 422, 879 422, 854 447, 879 472, 929 472, 954 447" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="744" y="447">Xout</text>
<polygon fill="#ffff80" points="954 547, 929 522, 879 522, 854 547, 879 572, 929 572, 954 547" stroke="#800000" stroke-width="1"/>
<text alignment-baseline="central" fill="#800000" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="744" y="547">Yout</text>
<line stroke="#000000" stroke-linecap="round" stroke-width="5" x1="154" x2="254" y1="247" y2="247"/>
<text alignment-baseline="after-edge" fill="#000080" font-family="微软雅黑" font-size="30" font-weight="700" text-anchor="start" x="95" y="267">1</text>
<rect fill="#ffffff" fill-opacity="0.5" height="60" stroke="#800000" stroke-width="5" width="100" x="54" y="217"/>
<text alignment-baseline="after-edge" fill="#000000" font-family="Arial" font-size="25" font-weight="700" text-anchor="start" x="98" y="208">1</text>
<text alignment-baseline="after-edge" fill="#000000" font-family="Arial" font-size="25" font-weight="700" text-anchor="start" x="15" y="359">INTER_DIGITAL</text>
<text alignment-baseline="after-edge" fill="#000080" font-family="Times New Roman" font-size="25" font-weight="400" text-anchor="start" x="55" y="320">Key = 1</text>
</svg>
; 示例程序 ; 示例程序
.text .text
mov a, 0x1
and a, 0x3
mov r0, 16 ;将立即数 16 传送到寄存器 r0 mov r0, 16 ;将立即数 16 传送到寄存器 r0
mov a, num ;将标号 num 指定的存储单元内容复制到累加器 a 中 mov a, num ;将标号 num 指定的存储单元内容复制到累加器 a 中
add a, r0 ;将累加器 a 与寄存器 r0 相加,结果写回 a 中 add a, r0 ;将累加器 a 与寄存器 r0 相加,结果写回 a 中
......
...@@ -449,7 +449,7 @@ ...@@ -449,7 +449,7 @@
0449 758 EF F7 F2 FF path sp, mar 0449 758 EF F7 F2 FF path sp, mar
0450 75C ED FB F3 FF path pc, [mar] ;将PC(返回地址)入栈 0450 75C ED FB F3 FF path pc, [mar] ;将PC(返回地址)入栈
0451 0451
0452 ; 将调用子程序入地址加载到PC,实现子程序调用 0452 ; 将调用子程序入地址加载到PC,实现子程序调用
0453 760 EF EF F7 FF path asr, pc ;将ASR寄存器的值加载到PC,也就是将调用子程序的入口地址加载到PC,转移到子程序处执行 0453 760 EF EF F7 FF path asr, pc ;将ASR寄存器的值加载到PC,也就是将调用子程序的入口地址加载到PC,转移到子程序处执行
0454 764 CF FF FF FF reset upc 0454 764 CF FF FF FF reset upc
0455 0455
......
...@@ -449,7 +449,7 @@ path csp, sp ;返回地址入栈前,先将SP-1,指向新的栈顶 ...@@ -449,7 +449,7 @@ path csp, sp ;返回地址入栈前,先将SP-1,指向新的栈顶
path sp, mar path sp, mar
path pc, [mar] ;将PC(返回地址)入栈 path pc, [mar] ;将PC(返回地址)入栈
; 将调用子程序入地址加载到PC,实现子程序调用 ; 将调用子程序入地址加载到PC,实现子程序调用
path asr, pc ;将ASR寄存器的值加载到PC,也就是将调用子程序的入口地址加载到PC,转移到子程序处执行 path asr, pc ;将ASR寄存器的值加载到PC,也就是将调用子程序的入口地址加载到PC,转移到子程序处执行
reset upc reset upc
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论