How can I translate this pseudocode into the machine language? x<-0; while (x<10) do (x<-x+1) (You can find the appendix c in my next message, we should translate it according to the appendix c.)
I'm afraid it depends very much on the target architecture. What CPU architecture are you writing assembly code (or machine code if required) for?
And do you want to go as direct as possible to machine language, as in asembly? Or were you thinking about using something more high level?
Note that true machine language is different for each operating system -- however you might be searching for something not as 'low level' like e.mccormick noted.
@woodrow73 yah, that is why I wondered if they knew what they meant. To do machine language is to write the micro code in binary. Assembly is a step above that, but not machine language. So, do they mean assembly? Or do they mean write a program for the machine, which could be one of many languages.
@woodrow73 @e.mccormick @Alchemista Sorry i forgot to say that, we should translate it according to the appendix c.
Join our real-time social learning platform and learn together with your friends!