implemented CPU::hasPendingInstructions()