FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Identify different addressing modes
A
Immediate Addressing
B
Direct Addressing
C
Indirect Addressing
D
Indexed Addressing
Explanation: 

Detailed explanation-1: -In the indexed addressing mode, the content of a given index register gets added to an instruction’s address part so as to obtain the effective address. Here, the index register refers to a special CPU register that consists of an index value.

Detailed explanation-2: -The array has a ‘base address’ which is the location of the first element, then an ‘index’ is used that adds an offset to the base address in order to fetch any other element within the array. The operand’s offset is the sum of the content of an index register SI or DI and an 8 bit or 16 bit displacement.

Detailed explanation-3: -Indexed Addressing Addresses have two parts: the number of an index register and a constant. The address of the operand is the sum of the constant and the contents of the index register. It contains indexed (direct) addressing, indexed immediate addressing and indexed indirect addressing.

There is 1 question to complete.