Machine code instructions are stored in electronic memory directly accessible to the processor (main memory) which the processor fetches, decodes and then executes one at a time. Data is also stored in memory directly accessible to the processor which the processor can alter and apply arithmetic or logical operations to when needed.