Moves setting of main memory device from inner loop to outside the loop.
An in-progress emulator of the Xerox Alto workstation.