Adds massive switch statements in processor to get core refbox functionality working.