How to generate the dumpsim file:
lc2sim ucode log2.obj data.obj
Where lc2sim is the executable of your simulator code, log2.obj is the log2 program that you wrote for Lab Assignment 1 and data.obj is a file that contains the value to be read into memory location 0x4000. data.obj should look like this:
0x4000 0x1234You can replace 1234 with any value you want to test on your swap program.
md 0x4000 0x4002
md 0x4000 0x4002
mv dumpsim dumpsim1