Hey Guys,
We are learning assembly in class, and there is this one instruction, Load Register Indirect with Predecrement (LDRP Rd, Rs), specific to our assembly language that is taught. I was wondering if anyone knows what is the point of this instruction? Can someone site a specific situation where we would use it in? All the situations that I think of can simply be done with LDR, and without the use of LDRP.
If you are wondering what LDRP does, it basically takes the value stored in a register (usually an address), decrements it, and puts it to another register.
LDR is similar, except with no decrement.
Thank you.
We are learning assembly in class, and there is this one instruction, Load Register Indirect with Predecrement (LDRP Rd, Rs), specific to our assembly language that is taught. I was wondering if anyone knows what is the point of this instruction? Can someone site a specific situation where we would use it in? All the situations that I think of can simply be done with LDR, and without the use of LDRP.
If you are wondering what LDRP does, it basically takes the value stored in a register (usually an address), decrements it, and puts it to another register.
LDR is similar, except with no decrement.
Thank you.