Embedded systems often store their firmware or operating systems in ROM or Flash memory. This firmware contains the necessary code to operate the device or system. Since this code is stored in non-volatile memory, it can be directly executed by the processor without the need for loading it into RAM first.