#168516 - Tyler24 - Sat May 02, 2009 5:10 am
I don't know what this syntax means, and my program doesn't work without it. I was googling after a lot of frustration and found that I needed to put an exclamation point after sp when using stmfd/ldmfd...
Edit: Okay, so it updates sp after the pushes occur... but why wouldn't something like that be assumed? Is there ever a time where you wouldn't want the sp to be updated after a push? I'm kind used to 80x86 assembly where you'd just push eax or something, and not have to worry about sp being updated like that.
Code: |
stmfd sp!, {r9-r12, lr}
bl drawpixel ldmfd sp!, {r9-r12, lr} |
Edit: Okay, so it updates sp after the pushes occur... but why wouldn't something like that be assumed? Is there ever a time where you wouldn't want the sp to be updated after a push? I'm kind used to 80x86 assembly where you'd just push eax or something, and not have to worry about sp being updated like that.