Вы находитесь на странице: 1из 2

Question regarding Simple Compute

1) The SA field is retained to permit jumps and branches on N or Z based on the contents of Source register A how contents of SA remained same ??? See page 469 of book. In the table i. ii. BRZ RA, AD (if R[SA] =0) PC = PC + OFFSET else PC = PC +1 BRN RA, AD if (R[SA] <0) PC = PC + OFFSET else PC = PC +1

Both of these instructions use SA field as the register which needs to be checked for a certain condition in this case equal to zero or negative. The instruction only looks at the content of R[SA] but does not modify what is stored in the register.

2) Instruction format a) register ? how Opcode describes number of registers ? The instruction describes the number of registers with fields RA, RB, and RD not the opcode. 3) Difference bet jump and (branch on zero ,branch on negative)? Pc+offset =jump or branch? See table on page 469 i. BRZ RA, AD (if R[SA] =0) PC = PC + OFFSET else PC = PC +1 ii. BRN RA, AD if (R[SA] <0) PC = PC + OFFSET else PC = PC +1 iii. JMP RA, PC=R[SA] Instructions BRZ and BRN depend on a condition to change PC whereas JMP instruction does not depend on any condition to change PC. 4) If A=1 010101 where msb is signed describing bit, its left shift =? If left shift occurs in our simple computer than the sign bit will be modified.

5) What is the role of status bit in control unit except indication purpose ? 6) How pc can be categorized among storage devices? PC is a register which falls into storage devices. 7) What does instruction 1100001 101 110 100 and 00000000011000000 specify ? Refer to table on page 469. 1100001 101 110 100 is BRN instruction

00000000011000000 is MOVA instruction CHECKS the rest of the fields to see what registers are used. 8) Exercise chp#09 Q 3 ? I will post the solution later on. 9) What is purpose of additional logic with pc? It looks as if I/O are used. I will discuss this further in near future.

Вам также может понравиться