1) In Fig. 4-6 the B bus register is encoded in a 4-bit field but the C bus is
represented as a bit map. Why?2) Suppose that in the example of Fig. 4-14(a) the statement k = 5;is added after the if statement. What would the new assembly code be? Assume that the compiler is an optimizing compiler.3) Give the Java statement that produced the following IJVM code: ILOAD j
ILOAD n
ISUB
BIPUSH 7
ISUB
DUP
IADD
ISTORE i4) When translating the statement if (Z) goto L1; else goto L2to binary L2 has to be in the bottom 256 words of the control store. Would it not be equally possible to have L1 at say 0x40 and L2 at 0x140? Explain your answer.
MY ASSIGNMENTNOTE: PLEASE ANSWER ALL QUESTIONS COMPLETELY AND SUBMIT TO ME IN A WORD DOCUMENT.THANK YOU! 1) In Fig. 4-6 the B bus register is encoded in a 4-bit field but the C bus is
represented as a bit map. Why?2) Suppose that in the example of Fig. 4-14(a) the statement k = 5;is added after the if statement. What would the new assembly code be? Assume that the compiler is an optimizing compiler.3) Give the Java statement that produced the following IJVM code: ILOAD j
ILOAD n
ISUB
BIPUSH 7
ISUB
DUP
IADD
ISTORE i4) When translating the statement if (Z) goto L1; else goto L2to binary L2 has to be in the bottom 256 words of the control store. Would it not be equally possible to have L1 at say 0x40 and L2 at 0x140? Explain your answer.
MY ASSIGNMENTNOTE: PLEASE ANSWER ALL QUESTIONS COMPLETELY AND SUBMIT TO ME IN A WORD DOCUMENT.THANK YOU!
Attachments: