Solution to a question in "Java How to Program" by Dietel to simulate a simple microprocessor.