第5章作业答案
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RB, 1->T0(CLK), 1->EXC(CLK) SR-IBUS,IBUS-RA, T+1(CLK) SUBC,ALU-IBUS,WE,W-B 1->T0(CLK), 1->FI(1->INT)(CLK)
SRC0 PC ->MAR SRC1 M->MDR->RA
PC+1 ->PC SRC2 SI->RB PC+1 ->PC SRC3 RA+RB->MAR
P201习题5.10:根据模型机数据通路结构,给出控制执行下述双 操作数算术逻辑运算指令的指令流程及微操作控制信号: (2)SUB CX,1234H[SI] SRC4 M->MDR->RB
EXC0 ROL SR->CX
PC->MAR M->MDR->IR PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-IR PC+1 ,IBUS-PC, 1->T0(CLK), 1->DST(CLK) PC+1 ,IBUS-PC, T+1(CLK) PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RA PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-RB PC+1 ,IBUS-PC, T+1(CLK) ADDC,ALU-IBUS,IBUS-RBL,T+1(CLK) RBL-IBUS,IBUS-RA,T+1(CLK) RE, W-B,R-IBUS, IBUS-RB, T+1(CLK)
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(5)SUB CX,[BX]
解: OPCODE d W MOD REG R/M 001010 1 1 00 001 111 •2B 0FH
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(8)XOR AX,5678H
解1 : OPCODE W 立即数低 立即数高 0011010 1 01111000 01010110 •35 78 56H
DST7 RA+RB->MAR
P201习题5.10:根据模型机数据通路结构,给出控制执行下述双 操作数算术逻辑运算指令的指令流程及微操作控制信号: (2)SUB CX,1234H[SI] FI0 FI1 DST0 DST1
PC->MAR M->MDR->IR PC+1->PC PC+1->PC CX ->SR PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-IR PC+1 ,IBUS-PC, 1->T0(CLK), 1->DST(CLK) PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-SR, 1->T0(CLK), 1->SRC(CLK) PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RA PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-RB PC+1 ,IBUS-PC, T+1(CLK) ADDC,ALU-IBUS,IBUS-MAR,T+1(CLK)
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(8)XOR AX,5678H
解2 : OPCODE W MOD REG R/M 1000000 1 11 110 000 •81 F0 78 56H
立即数低
01111000
立即数高
01010110
P201习题5.9:根据模型机数据通路结构,给出控制执行下述 MOV指令的指令流程及微操作控制信号: (4)MOV 1C26H[BX][DI],0F28H FI0 FI1
PC+1->PC DST0 PC+1->PC DST1 PC ->MAR DST2 M->MDR->RA PC+1 ->PC BX->RB PC+1 ->PC RA+RB->RBL RBL->RA DI->RB
DST3 DST4 DST5 DST6
P201习题5.9:根据模型机数据通路结构,给出控制执行下述 MOV指令的指令流程及微操作控制信号: (4)MOV 1C26H[BX][DI],0F28H
CHAP5习题课: 中央处理器
主要内容: 模型机结构:P150图,综合运用 指令格式 指令流程及微操作控制信号
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(3)MOV 16H[DI],CX
解: OPCODE d W MOD REG R/M 位移量低 100010 0 1 01 001 101 00010110 •89 4D 16H
EXC0 SR->RA EXC1 RA-RB->CX
P201习题5.11:根据模型机数据通路结构,给出控制执行下述移 位指令的指令流程及微操作控制信号:Βιβλιοθήκη Baidu(3)ROL CX,1 FI0 FI1 DST0 DST1
PC->MAR M->MDR->IR PC+1->PC PC+1->PC CX ->SR PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-IR PC+1 ,IBUS-PC, 1->T0(CLK), 1->DST(CLK) PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-SR, 1->T0(CLK), 1->EXC(CLK) ROLC,W-B,SR-IBUS,WE, 1->T0(CLK), 1->FI(1->INT)(CLK)
ADDC,ALU-IBUS,IBUS-MAR, 1->T0(CLK), 1->SRC(CLK) SRC0 MAR->SR MAR-IBUS, IBUS-SR,T+1(CLK) SRC1 PC ->MAR PC-IBUS, IBUS-MAR, T+1(CLK) SRC2 M->MDR->RBL MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RBL PC+1 ->PC PC+1 ,IBUS-PC, T+1(CLK) SRC3 SR->MAR SR-IBUS, IBUS-MAR PC+1 ->PC PC+1 ,IBUS-PC, 1->T0(CLK), 1->EXC(CLK) EXC0 RBL->MDR RBL-IBUS,I-DBUS,BUS-MDR, T+1(CLK) EXC1 MDR->M MAR-ABUS, MDR-DBUS,MWR,W-B, 1->T0(CLK), 1->FI(1->INT)(CLK)
SRC0 PC ->MAR SRC1 M->MDR->RA
PC+1 ->PC SRC2 SI->RB PC+1 ->PC SRC3 RA+RB->MAR
P201习题5.10:根据模型机数据通路结构,给出控制执行下述双 操作数算术逻辑运算指令的指令流程及微操作控制信号: (2)SUB CX,1234H[SI] SRC4 M->MDR->RB
EXC0 ROL SR->CX
PC->MAR M->MDR->IR PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-IR PC+1 ,IBUS-PC, 1->T0(CLK), 1->DST(CLK) PC+1 ,IBUS-PC, T+1(CLK) PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RA PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-RB PC+1 ,IBUS-PC, T+1(CLK) ADDC,ALU-IBUS,IBUS-RBL,T+1(CLK) RBL-IBUS,IBUS-RA,T+1(CLK) RE, W-B,R-IBUS, IBUS-RB, T+1(CLK)
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(5)SUB CX,[BX]
解: OPCODE d W MOD REG R/M 001010 1 1 00 001 111 •2B 0FH
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(8)XOR AX,5678H
解1 : OPCODE W 立即数低 立即数高 0011010 1 01111000 01010110 •35 78 56H
DST7 RA+RB->MAR
P201习题5.10:根据模型机数据通路结构,给出控制执行下述双 操作数算术逻辑运算指令的指令流程及微操作控制信号: (2)SUB CX,1234H[SI] FI0 FI1 DST0 DST1
PC->MAR M->MDR->IR PC+1->PC PC+1->PC CX ->SR PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-IR PC+1 ,IBUS-PC, 1->T0(CLK), 1->DST(CLK) PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-SR, 1->T0(CLK), 1->SRC(CLK) PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RA PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-RB PC+1 ,IBUS-PC, T+1(CLK) ADDC,ALU-IBUS,IBUS-MAR,T+1(CLK)
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(8)XOR AX,5678H
解2 : OPCODE W MOD REG R/M 1000000 1 11 110 000 •81 F0 78 56H
立即数低
01111000
立即数高
01010110
P201习题5.9:根据模型机数据通路结构,给出控制执行下述 MOV指令的指令流程及微操作控制信号: (4)MOV 1C26H[BX][DI],0F28H FI0 FI1
PC+1->PC DST0 PC+1->PC DST1 PC ->MAR DST2 M->MDR->RA PC+1 ->PC BX->RB PC+1 ->PC RA+RB->RBL RBL->RA DI->RB
DST3 DST4 DST5 DST6
P201习题5.9:根据模型机数据通路结构,给出控制执行下述 MOV指令的指令流程及微操作控制信号: (4)MOV 1C26H[BX][DI],0F28H
CHAP5习题课: 中央处理器
主要内容: 模型机结构:P150图,综合运用 指令格式 指令流程及微操作控制信号
P201习题5.8: 给出模型机中下列机器指令的目标代码:
(3)MOV 16H[DI],CX
解: OPCODE d W MOD REG R/M 位移量低 100010 0 1 01 001 101 00010110 •89 4D 16H
EXC0 SR->RA EXC1 RA-RB->CX
P201习题5.11:根据模型机数据通路结构,给出控制执行下述移 位指令的指令流程及微操作控制信号:Βιβλιοθήκη Baidu(3)ROL CX,1 FI0 FI1 DST0 DST1
PC->MAR M->MDR->IR PC+1->PC PC+1->PC CX ->SR PC-IBUS, IBUS-MAR, T+1(CLK) MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-IR PC+1 ,IBUS-PC, 1->T0(CLK), 1->DST(CLK) PC+1 ,IBUS-PC, T+1(CLK) RE, W-B,R-IBUS, IBUS-SR, 1->T0(CLK), 1->EXC(CLK) ROLC,W-B,SR-IBUS,WE, 1->T0(CLK), 1->FI(1->INT)(CLK)
ADDC,ALU-IBUS,IBUS-MAR, 1->T0(CLK), 1->SRC(CLK) SRC0 MAR->SR MAR-IBUS, IBUS-SR,T+1(CLK) SRC1 PC ->MAR PC-IBUS, IBUS-MAR, T+1(CLK) SRC2 M->MDR->RBL MAR-ABUS, MRD, W-B, I-DBUS, BUS-MDR, MDR-IBUS,IBUS-RBL PC+1 ->PC PC+1 ,IBUS-PC, T+1(CLK) SRC3 SR->MAR SR-IBUS, IBUS-MAR PC+1 ->PC PC+1 ,IBUS-PC, 1->T0(CLK), 1->EXC(CLK) EXC0 RBL->MDR RBL-IBUS,I-DBUS,BUS-MDR, T+1(CLK) EXC1 MDR->M MAR-ABUS, MDR-DBUS,MWR,W-B, 1->T0(CLK), 1->FI(1->INT)(CLK)