J.F.
知名会员
- 注册
- 2004-01-05
- 消息
- 269
- 荣誉分数
- 0
- 声望点数
- 126
刚做的。帮忙核对。
(A)
opcode=M0, M1, M2, M3, M4, M5
XOR:
M0T4: DR<-M[AR]
M0T5: AC<-AC xor DR, SC<-0
ADM:
M1T4: DR<-M[AR]
M1T5: AC<-AC+DR, DR<-AC
M1T6: M[AR]<-AC, AC<-DR, SC<-0
SUB:
M2T4: DR<-M[AR]
M2T5: AC<-AC-DR, SC<-0
XCH:
M3T4: DR<-M[AR]
M3T5: M[AR]<-AC, AC<-DR, SC<-0
SEQ:
M4T4: DR<-M[AR]
M4T5: AC<-AC xor DR
M4T6: if(AC==0), then (S': PC<-PC+1), SC<-0
BPA:
M5T4: (AC7)'(AC6AC5AC4AC3AC2AC1AC0): PC<-Ac, SC<-0
(B)
mem read=((M0T4)'(M1T4)'(M2T4)'(M3T4)'(M4T4)')'
mem write=((M1T6)'(M3T5)')'
(C)
PC=100, M[PC]=0200, M[200]=2345, AC=6422, IR=0, AR=200, DR=2345
PC=101, M[PC]=9300, M[300]=0600, M[600]=A732, AC=A732, IR=9, AR=600, DR=4310
PC=102, M[PC]=2400, M[400]=1234, AC=94FE, IR=2, AR=400, DR=1234
PC=103, M[PC]=5500, M[500]=A1B1, AC=94FE, IR=5, AR=500, DR=1234
(A)
opcode=M0, M1, M2, M3, M4, M5
XOR:
M0T4: DR<-M[AR]
M0T5: AC<-AC xor DR, SC<-0
ADM:
M1T4: DR<-M[AR]
M1T5: AC<-AC+DR, DR<-AC
M1T6: M[AR]<-AC, AC<-DR, SC<-0
SUB:
M2T4: DR<-M[AR]
M2T5: AC<-AC-DR, SC<-0
XCH:
M3T4: DR<-M[AR]
M3T5: M[AR]<-AC, AC<-DR, SC<-0
SEQ:
M4T4: DR<-M[AR]
M4T5: AC<-AC xor DR
M4T6: if(AC==0), then (S': PC<-PC+1), SC<-0
BPA:
M5T4: (AC7)'(AC6AC5AC4AC3AC2AC1AC0): PC<-Ac, SC<-0
(B)
mem read=((M0T4)'(M1T4)'(M2T4)'(M3T4)'(M4T4)')'
mem write=((M1T6)'(M3T5)')'
(C)
PC=100, M[PC]=0200, M[200]=2345, AC=6422, IR=0, AR=200, DR=2345
PC=101, M[PC]=9300, M[300]=0600, M[600]=A732, AC=A732, IR=9, AR=600, DR=4310
PC=102, M[PC]=2400, M[400]=1234, AC=94FE, IR=2, AR=400, DR=1234
PC=103, M[PC]=5500, M[500]=A1B1, AC=94FE, IR=5, AR=500, DR=1234