programs in embeded systems

Someone wants to prohibit granting a patent of a software invention.
How about programs used in embeded systems ?

It is difficult to distinguish such programs and software ?