??? 12/29/05 08:14 Read: times |
#106143 - Swapping 2 variables without a temp. |
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; due credit to whoever wrote it http://www.phim.unibe.ch/comp_doc/...tml#printf Regards Marshall |
Topic | Author | Date |
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 |