Question

Suppose that a beq instruction resides at memory address 0x08000000 and that the rightmost 16 bits...

Suppose that a beq instruction resides at memory address 0x08000000 and that the rightmost 16 bits within the machine code for the beq contains the value 0x00BB. To what value (expressed in hex) would the PC be set if the zero flag=1 when the beq instruction is executed?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Since zero flag =1 this means that content of both register are same hence branching will happen.

Since the rightmost 16 bit contain the offset value by which the branching should happen when offset value is multiplied by 4. Multiply by 4 happen because every address is multiple of 4.

So, present memory address is 0x08000000, then program counter value will be increased by 0x00BB * 4 = 0x02EC .

So, PC will be set to 0x08000000 + 0x02EC = 0x080002EC

Please comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
Suppose that a beq instruction resides at memory address 0x08000000 and that the rightmost 16 bits...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Suppose the instruction j LABEL1 resides at memory address 0x04000000. What is the highest memory address...

    Suppose the instruction j LABEL1 resides at memory address 0x04000000. What is the highest memory address (expressed in hex) to which this instruction can transfer control?

  • 6. In each of the instructions shown below, assume that the label LOOP corresponds to memory...

    6. In each of the instructions shown below, assume that the label LOOP corresponds to memory address   0x40CE0078. a) (5) Show in hex the 32-bit machine code for the instruction    bltzal $14,LOOP Assume that the machine code will be located at address 0x40CE8880. b) (5) Register $14 contains negative 2 in two’s complement form. Show, in hex (0xdddddddd), the 32-bit contents of all registers within the CPU that are modified when the instruction bltzal $14,LOOP is executed.. c) 5) Show...

  • A digital computer has a memory unit with 24 bits per word. The instruction set consists...

    A digital computer has a memory unit with 24 bits per word. The instruction set consists of 199 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. [] How many bits are needed for the opcode? How many bits are left for the address part of the instruction? What is the maximum allowable size for memory? What is the largest signed...

  • A digital computer has a memory unit with 24 bits per word. The instruction set consists...

    A digital computer has a memory unit with 24 bits per word. The instruction set consists of 110 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. (10 points) How many bits are needed for the opcode? How many bits are left for the address part of the instruction? What is the maximum allowable size for memory? What is the largest...

  • A digital computer has a memory unit with 24 bits per word. The instruction set consists...

    A digital computer has a memory unit with 24 bits per word. The instruction set consists of 199 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. [8 marks] How many bits are needed for the opcode? How many bits are left for the address part of the instruction? What is the maximum allowable size for memory? What is the largest...

  • 1) We would like to design a bus system for 32 registers of 16 bits each....

    1) We would like to design a bus system for 32 registers of 16 bits each. How many multiplexers are needed for the design? Select one: 5 16 1 4 32 2) The basic computer can be interrupted while another interrupt is being serviced. Select one: True False 3) If the Opcode bits of an instruction is 111, then the basic computer instruction type is either memory-reference or input-output. Select one: True False 4) The content of AC in the...

  • 2. Suppose that a 16M X 16 main memory is built using 512K X 8 RAM...

    2. Suppose that a 16M X 16 main memory is built using 512K X 8 RAM chips and memory is word addressable. a) How many RAM chips are necessary? ______ b) How many RAM chips are needed for each memory word? _______ c) How many address bits are needed for each RAM chip? _______ d) How many address bits are needed for all memory? _______ A digital computer has a memory unit with 24 bits per word. The instruction set...

  • Modify the circuit to support a MFCC instruction. MFCC Rd instruction: Move From Condition Codes MFCC copies into the fo...

    Modify the circuit to support a MFCC instruction. MFCC Rd instruction: Move From Condition Codes MFCC copies into the four rightmost bits of Rd the values of the ALU signals Carry (C), Overflow (O), Zero (Z) and Negative (N) as they were set by the previous R- type instruction. The remaining 28 bits of Rd are set to zero. Describe the changes and additions needed for the single-cycle MIPS processor datapath and control to support this instruction. Hints: 1) MFCC...

  • Ouestion # 1 Assume that PC-7FFh and the memory contents are as below table: Address Content 07FF...

    Register Transfer notation: Please explain in detail, thank you:) Ouestion # 1 Assume that PC-7FFh and the memory contents are as below table: Address Content 07FFhEA9Fh 0A9Fh0C35h 0C35hFFFFh Suppose the instruction code for ISZ (Increment and Skip if Zero) is 1110b NOTE: RTL for ISZ is as follow: DR M [AR] DRDR 1 M [AR] ← DR, if (DR = 0) then (PC ← PC + 1), SC ← 0 AR- "Address Register" SR"Sequence counter/Register" DR-"Data Register" M[]-"Memory access What...

  • [20 pts] 5- Consider the following hypothetical 1-address assembly instruction called "Store Accumulator Indirect with Post-increment"...

    [20 pts] 5- Consider the following hypothetical 1-address assembly instruction called "Store Accumulator Indirect with Post-increment" of the form STA (x)- : M(M(x)) ← AC, M(x) ← M(x)+1 Suppose we want to implement this instruction on the pseudo-CPU discussed in class augmented with a temporary register TEMP. An instruction consists of 16 bits: A 4-bit opcode and a 12-bit address. All operands are 16 bits. PC and MAR each contain 12 bits. AC, MDR, and TEMP each contain 16 bits,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT