I am afraid your question is formulated in a confusing way and every answer got it wrong. I thin it might be where does the processor instruction set resides ?
I believe on simple microcontroller, the answer is nowhere. The instruction set is just a summary of the mapping from “input”, strings of 0s and 1s called instruction, into an “output”, a behaviour. this mapping is implemented by the hardware chip architecture (circuit).