Question: 3. Consider the following E20 program: xyz: abc: movi $4, 9 addi $4, $4, 5 jeq $4, $0, xyz movi $1, 0 halt movi

3. Consider the following E20 program: xyz: abc: movi $4, 9 addi




3. Consider the following E20 program: xyz: abc: movi $4, 9 addi $4, $4, 5 jeq $4, $0, xyz movi $1, 0 halt movi $1, 1 halt (a) What is the final value of the $1 register? (b) What is the value of the label xyz? (c) What is the value of the label abc? (d) What is the address of the jeq instruction? (e) What will be the value of the immediate field of the jeq machine code instruction? Consult the E20 manual. Don't forget that in E20 machine code, the jeq instruction's immediate is a relative address. Your answer will depend on the address of the jeq instruction and also on the address of xyz. Give your answer as a 7-bit binary number.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!