# How is machine code handled by the microprocessor? [closed]

And no I don't mean "How do you write a program for a processor".

What I want to know is how does a processor interpret some aribtrary instruction, say 100001 as ADD r1,r2 etc.? What do the individual bits in the bit sequence mean and how does the bit sequence tell the processor what to do?

Is it similar to how an FPGA works? Is the processor logic just a bunch of gates?

## closed as unclear what you're asking by JYelton, Matt Young, Chetan Bhargava, Nick Alexeev♦, tcrosleyFeb 5 '14 at 1:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.