The Swapper

For this assignment, you will need to write an assembly language program. You should use the language provided in the class handouts (also available here .

The program should have two named cells. The program should swap the values in the cells. The program should work regardless of the initial values of the cells. For example, if you started with a cell a: containing the value '5' and b: containing the value '7', by the end of the program's run, a: should contain '7', and b: should contain '5'.

Please also include relevant comments in your code.

You may turn this project in on paper. You don't have to use the xMachine simulator, but it would make sense to test your program on it.

Please turn in the following elements:
© Andy Harris
Indiana University / Purdue University, Indianapolis
email: aharris@cs.iupui.edu
homepage: http://www.cs.iupui.edu/~aharris