Hi,
I needed help in defining a macro called SWITCH that will interchange the contents of 2 fullwords in storage.
This is Mainframe Assembler IBM PC 370.
Thanks
Most of us would regard this as homework.deathwish73 wrote:The following below is not a homework assignment but just a book exercise for practice. ...
1. Google is your friend. Googling swap memory xor find 1,770,000 hits and the very first one explains it clearly.there are three ways of doing it
1) 3 exclusive OR
2) 3 moves using an intermediate work variable
3) 1 load 1 move 1 store ( using a register instead of the work variable )