View Single Post
Old August 28th, 2013 (1:41 PM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
    Join Date: Nov 2012
    Location: Do you really want to know? Really?
    Gender: Male
    Nature: Bold
    Posts: 1,766
    Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552
    Originally Posted by gogojjtech View Post
    This question goes here
    But anyway you could store r1 in r3, then put r2 in r1, then r3 in r2
    Like this:
    r1 -> r3
    r2 -> r1
    r3 -> r2

    But clear r3 afterwards. The command you should use is mov.
    Don't clear it, push it. So:

    Push {r3}
    Mov r3, r1
    Mov r1, r2
    Mov r2, r3
    Pop {r3}

    Paired with Simba
    Reply With Quote