in CO and Architecture
301 views
0 votes
0 votes
Can anyone please explain in simple terms indexed, relative and base register addressing modes?
in CO and Architecture
by
301 views

1 Answer

0 votes
0 votes

RELATIVE ADD. MODE - WHEN THE TARGET INSTRUCTION PRESENT IN the SAME SEGMENT DURING the PROGRAM EXECUTION, CONTROL WILL TRANSFER, CALLED AS INTRA-SEGMENT 

Effective add. calculated by adding the relative value to a program counter

EA= PC+ADDRESS FIELD VALUE

BASE ADD. MODE - WHEN THE TARGET INSTRUCTION PRESENT IN DIFFERENT SEGMENT THEN DURING THE PROGRAM EXECUTION, CONTROL WILL TRANSFER B/W  THE SEGMENT CALLED AS INTER-SEGMENT,

EFFECTIVE ADD.= [BASE REG] + ADD. FIELD 

1 comment

In relative addressing mode w.r.t   program counter ,  E.A= PC+ (ADDRESS FIELD VALUE - 1)
0
0

Related questions