The assignment of a debt secured by a real estate mortgage carries with it the security.
SDCL 44-8-1.4