The CPU understand and can run only 0 and 1, and to make logic of it like adding two numbers we have a Logic Gates basically (AND, OR, XOR). We use those to make more complex things such as adding two numbers. The processor manufacturer provides developers with documentation they can use to give instructions to the CPU.