Datapaths Flashcards
RTN(s) for the TRAP instruction
R7 ⇐ PC; PC ⇐ Mem[ ZEXT(IR[7:0]) ]
RTN(s) for the JMP instruction
PC ⇐ BaseR
RTN(s) for the ADD instruction - register mode -
DR ⇐ SR1 + SR2
RTN(s) for the ADD instruction - immediate mode -
DR ⇐ SR1 + SEXT(IR[4:0])
RTN(s) for the AND instruction - register mode -
DR ⇐ SR1 . SR2
RTN(s) for the AND instruction - immediate mode -
DR ⇐ SR1 . SEXT(IR[4:0])
RTN(s) for the JSR instruction
R7⇐PC; PC ⇐ PC + SEXT(IR[10:0])
RTN(s) for the NOT instruction
DR ⇐ (SR1’)
RTN(s) for the ST instruction
Mem[ PC + SEXT(IR[8:0]) ] ⇐ SR
RTN(s) for the LD instruction
DR ⇐ Mem[ PC + SEXT(IR[8:0]) ]
RTN(s) for the LDR instruction
DR ⇐ Mem[ IR[8:6] + SEXT(IR[5:0]) ]
RTN(s) for the LEA instruction
DR ⇐ PC + SEXT(IR[8:0])
RTN(s) for the STI instruction
Mem[ Mem[ PC + SEXT(IR[8:0]) ] ] ⇐ SR
RTN(s) for the BR instruction
PC ⇐ PC + SEXT(IR[8:0]) iff (N.n + Z.z + P.p)
RTN(s) for the STR instruction
Mem[ IR[8:6] + SEXT(IR[5:0]) ] ⇐ SR