MCS012 Explain the immediate addressing and indirect addressing
IGNOU BCA second semester subject MCS12 IMPORTANT Questions with answers Question: Explain the immediate addressing and indirect addressing with the help of one example of each. Answer π Immediate addressing : Immediate addressing is a method of addressing in computer programming where the actual value is directly provided as part of the instruction itself. In this mode, the operand is specified within the instruction, and the CPU directly uses that value for the operation. This means that the data is not fetched from memory or another register. Example : Let's say we have a simple assembly instruction that adds the value 10 to a register called "A". The instruction might look like this: ADD A, 10 In this example, the number 10 is provided directly in the instruction itself. When the CPU encounters this instruction, it immediately adds the value 10 to the contents of register A without fetching the data from memory. Indirect Addressing : Indirect addressing is a method