Not complete yet, but has @KEY and @DSP, enough to get prompt.
I'm about to reuse sdc.c in sms.c and the old directory structure was becoming awkward.