View Single Post
Old August 28th, 2013 (09:32 AM).
GoGoJJTech's Avatar
GoGoJJTech (WIP!)
Community Supporter
Join Date: Nov 2012
Location: Earth
Age: 16
Gender: Male
Nature: Quiet
Quote originally posted by trafalgar:
Is there any way to swap the values ​​of two registers?
r1 -> r2
r1 <- r2

Excuse my English but I use google translator: \
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.
Reply With Quote