Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/29/05 11:33
Read: times


 
#106145 - Does it help ?
Responding to: ???'s previous message
Marshall Brown said:
Found this on the web and thought it might be good for the For the "wow that's a cool idea file"

For swapping 2 variables with no temporary variable, no doubt just as easy to implement in asm once you have thought of the idea.

one ^= two;
two ^= one;
one ^= two;



Come off it ! How do you implement pointer code in less space than using an intermediate variable, or the stack ?

Steve

List of 8 messages in thread
TopicAuthorDate
Swapping 2 variables without a temp.            01/01/70 00:00      
   Does it help ?            01/01/70 00:00      
   what aboyt SWAP, it is ONE instruction            01/01/70 00:00      
      I think you meant XCH            01/01/70 00:00      
         I did, stupid me            01/01/70 00:00      
            Sorry            01/01/70 00:00      
               Pointers            01/01/70 00:00      
                  Call me            01/01/70 00:00      

Back to Subject List