Quote:
Originally Posted by
shamrock
That's the job of the assembler. It converts hex strings to machine code in the instruction set of the mpu and ofcourse the separation of data and instructions.
Can you give an example of instruction set of the mpu? Does it look like:
ADD, JMP, etc? If yes, then ADD need to be translated too unless if it inserted directly as 110010 101001 (ADD #), something like that....
Ok assume, we wrote the code from the keyboard in binaries, so kept writing such as 101001 110110 10110100, refers to ADD AX, etc. Can my machine just grab this binaries without the help of any compiler?
I guess the only way to fully understand it, i have to take hardware, and compiler construction courses.
Anyway, I appreciate all of your help members! Well Said, Well Answered