EE2801: Foundations of Embedded SystemsLecture 19Review: Addressing ModesRegisteraddressing mode•Uses the name of a register to identify the location of data –the data is held in the registerImmediateaddressing mode•The data is specified in the instruction and is hard coded as part of the instruction (source operand)Memoryaddressing mode•Indexed mode:x(Rn), x is a constant, Rn is a CPU register. the data is held in memory, address is x+(content of Rn). •Symbolic/Absolute mode:ADDR / &ADDR. ADDR is label pointing to memory. The data is held in memory, address is the value assigned to the label.•Indirect (Autoincrement) mode:@Rn (@Rn+), the address of the data in the memory is given in register Rn (automatically increment Rn by 1 or 2).