169k views
1 vote
The code size of 2-address instruction is________________.? 5 bytes? 7 bytes? 3 bytes? 2 bytes

1 Answer

2 votes

Answer:

7 bytes

Step-by-step explanation:

2 Address Instruction

The 2 address instruction consist 3 components in the format.

One is opcode,other two are addresses of destination and source.

Example-

load b,c | Opcode destination address,source address

add a,d | Opcode destination address,source address

sub c,f | Opcode destination address,source address

Opcode consists of 1 bytes whereas destination address and source address consist of 3 bytes each.

(1+3+3) bytes=7 bytes

User Juan Herrera
by
5.8k points