stmfd SP!,{LR} ; Store the link register for the current mode\r
sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR\r
stmfd SP!,{R0-R12} ; Store the register state\r
stmfd SP!,{LR} ; Store the link register for the current mode\r
sub SP,SP,#0x20 ; Save space for SP, LR, PC, IFAR - CPSR\r
stmfd SP!,{R0-R12} ; Store the register state\r