For the sake of simplicity, Let's assume I just want to translate the following assembly instruction:
AND R2, R2, #0
Let's again assume the binary representation for the Opcode to that instruction is:
0101010010100000
If I've understood correctly what I've read, the assembler translates the former to the later, but that string of 1s and 0s that results from the translation is not actual machine code, it is an ASCII string of 1s and 0s.
At the electrical level, this string is completely different to the electrical pattern that corresponds to the Opcode, so it does not behave like the Opcode it represents.
My question is: how does this particular string of 1s and 0s become the actual pattern of electricity that commands the ALU to perform the correct Opcode? How does the assembler transform that ASCII string of 1s and 0s to the electrical pattern that matches that particular Opcode?
I have searched high and low for a clear, beginner-friendly answer to this question, so I would appreciate any insights. Thanks a lot.