Machine language is nothing but numeric codes. Because humans have a difficult time remembering numeric codes, manufacturers of microprocessors create mnemonics; these sets of mnemonics are called assembly language. Each processor family has its own set of mnemonics, or assembly language, so assembly for the Intel processor used in many PCs is different from the assembly for a Motorola processor. In fact the assembly for different processors made by the same manufacturer will have assembly that differs, sometimes by a little, sometimes significantly. A quick example of one type of Motorola assembly, to clear 10 32-bit memory locations might look like this:
movea #$6000,ao
move.l #10,d7
10$
clr.l (a0+)
subq.l #1,d7
bne.s 10$
rts
Chat with our AI personalities
Machine code is an encoded sequence that is specific to a particular type of machine. In computing, machine code is encoded using binary notation. Every computer platform has its own set of instructions and architecture, and machine code must be specifically engineered separately for each platform. Code written specifically for an IBM mainframe will not operate upon an Apple Mac, for instance.
Some examples of programming languages include Java, C++, PHP, and Python. Each is designed for a specific task and has its own, unique features.
Some programming languages:
It are machine code and Assembly.
Machine code is the native language of the machine. The machine does not "understand" any language other than its own native language. As such, all other languages, including low level assembly languages, must be compiled or interpreted in order to produce the required machine code.
No. Generally, one instruction in a high level language corresponds to many instructions in machine language.
It converts machine level language to high level language simultaneously...and vice versa..
Machine code is the ONLY example of machine language. However, every machine architecture has its own version of machine code; it is the native language of the machine. If you want to examine machine code upon your own machine, use a hex editor. This will show you every byte of the code in hexadecimal form.