Renamed generateEnd() to generateHalt()
loadToAccumulator(..) saves the acc. value, if necessary.

The accumulator value is saved to an auxiliary variable before
loading a new value, if necessary.