Question

If a BRA instruction is located at $01CD, what is the maximum backward destination address

If a BRA instruction is located at $01CD, what is the maximum backward destination address

Homework Answers

Answer #1

Calculating the Destination Address

In the relative mode, a relative address follows the opcode in memory. It is added to the current program counter to determine the destination address. The relative address is a signed 8-bit number that indicates the number of bytes to branch forward or backward in memory to the destination address. It is a displacement from the current position in memory. Since it is a signed 8-bit number, it must be sign-extended to 16 bits before being added to the contents of the 16-bit program counter.

DA = PC + rr

DA = Destination Address

PC = Address in the Program Counter

rr = Sign-Extended Relative Address

DA = $01 + 2 -> $03

rr = $CD -> $CD

------------------------------

DA ------> $92

Know the answer?
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
Similar Questions
In DHCP discover message, what is the source address and what is the destination address? What...
In DHCP discover message, what is the source address and what is the destination address? What are their special meanings?
Suppose that the address of the jump instruction (j) is 0x2000,0000. Is it possible to use...
Suppose that the address of the jump instruction (j) is 0x2000,0000. Is it possible to use this jump instruction to set the PC to the address as 0x3000,0000? Please elaborate your answer
For a store operation, what is stored in the MAR? a) The store instruction b) The...
For a store operation, what is stored in the MAR? a) The store instruction b) The memory address of the store instruction c) The memory address of the location in memory to which data will be written d) The data to be stored in memory
3- please convert the following. show all work a) convert this into one-address machine instruction (load,store,add,sub,mult):...
3- please convert the following. show all work a) convert this into one-address machine instruction (load,store,add,sub,mult): E = (A*C) + (B*D) b) convert this into two-address machine instruction: A= C+B*D*E+A. c) convert this expression using zero-address machine: a=b-c*d.
what is the maximum size of a memory that can be connected to a 20bits address...
what is the maximum size of a memory that can be connected to a 20bits address bus processor if the memory cell size is 16 bits. Find the result in bytes
Multiply 8 bit integer data located in address 20H by another 8 bit integer data located...
Multiply 8 bit integer data located in address 20H by another 8 bit integer data located in address 21H, and store the result into address 22H (low) and 23H (high). Note: Use the Assembler language of the PIC16F877 processor.
Multiply 8 bit integer data located in address 20H by another 8 bit integer data located...
Multiply 8 bit integer data located in address 20H by another 8 bit integer data located in address 21H, and store the result into address 22H (low) and 23H (high). Note: Use the Assembler language of the PIC16F877 processor.
Q) a) indicate the number of instruction bytes and cycles required for the following instructions: (I)...
Q) a) indicate the number of instruction bytes and cycles required for the following instructions: (I) STAA $0,Y (ii) STAB $1000(III) STAA $0,X (IV)STAB $10 (V) PSHA (VI) BRA (VII) JMP (VIII) CLI b) which is the preferred method when interacting with a significant number of microcontroller registers? c) what instruction is necessary to perform first before we can use this (assuming a default microcontroller configuration)?
Question 35 What is the maximum cable length for a 1000BaseT network? Group of answer choices...
Question 35 What is the maximum cable length for a 1000BaseT network? Group of answer choices 100 meters 400 meters 200 meters 2000 meters Question 36 Which of the following is true about single mode fiber-optic network cabling? Group of answer choices The central core is composed of braided plastic or glass fibers. The central core is smaller than that of multimode fiber-optic cabling. It transmits multiple rays of light concurrently. It doesn’t support segment lengths as long as those...
A digital computer has a memory unit with 32 bits per word. The instruction set consists...
A digital computer has a memory unit with 32 bits per word. The instruction set consists of 147 different operations. All instructions have an operation code part (opcode) and two address fields: one for a memory address and one for a register address. This particular system includes eight general-purpose, user-addressable registers. Registers may be loaded directly from memory, and memory may be updated directly from the registers. Direct memory-to-memory data movement operations are not supported. Each instruction stored in one...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT