Derivation of the Korteweg-deVries equation for an operator with a mixed spectrum