darkknightkryta said:
Machine code is just a representation of assembly. So for instance ADD 1 1 would represented as 110 for ADD 0001 for one in byte representation, so the full machine code would be 11000010001. Now that's me simplifying it and assigning 110 for ADD. It's a bit more complex, but each portion of the bit number represents something, so the first few digits would be your actual op, and the last 8 bits would be something, a memory address, direct numbers, registers, etc. Higher the percision, so let's say a 64 bit processor vs 32 bit processor would let you have more complex ops and to represent bigger numbers. |
I see. So machine code is the assembly commands when translated into binary numbers and stored in the registers? That's similar to how I remember it from digital technology class. Only, since we used a training processor with 8-bit registers, the command filled an entire register, and the adress came from the register after.
I LOVE ICELAND!








