answersLogoWhite

0


Best Answer

Well, let's say you have the following Assembler statement:

MOV AX, 0005

Each processor (depending on the processor architecture, being some of them: SPARC, Intel 80x86, Motorola...) translates each Assembler mnemonic and register into Machine Code according to an Opcode Table.

Think of an Opcode Table this way:

Instruction OpCode

-----------------------------------

MOV A1

ADD A2

SUB A3

MUL A4

DIV A5

...

AX B0

BX B1

CX B2

...

Each mnemonic/register has its corresponding hex code for the processor to understand the operation, so:

MOV AX, 0005

Could be translated as:

A1 B0 0005

Hopefully this gives you an idea of how a processor assembles code and generates machine code.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

It doesn't. it is the job of the compiler to convert C source code into the necessary object code.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

Assembler

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What translates a program written in Assembly language into machine code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


What application will be used to convert an assembly language source program into machine language?

An Assembler converts assembly language instructions into machine language.


What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


What translation programs converts assembly language programs to object program?

The only translation program that converts assembly language to machine code is an assembler.


Are machine language and assembly language the same?

No, they are not the same. Assembly language uses mnemonic words to REPRESENT machine language; to be able to actually run it, a special program - a so-called assembler - then needs to convert it into machine language.


What is an assembler in computing?

An assembler is a machine code program that converts low-level symbolic assembly language instructions into machine code. Assembly language is a second generation programming language.


What is assembler in computer?

An assembler is a machine code program that converts low-level symbolic assembly language instructions into machine code. Assembly language is a second generation programming language.


How would you define assembly language?

assembly language uses abbreviation called menmonics.it is a bit easier to write computer programs in assembly language as compared to machine language but still requires skill and experienci.A program called assembler is used to convert an assembly language into machine language.


Which program translates an assembly language program into a high-level language?

A High level language is a language like C, Pascal, Fortran. To convert, the easiest way is to use a compiler. A compiler will take the instructions written in a high level language and convert them into machine code which is the specific instruction set for that type of computer. Assembly language is just a human readable form of a machine code which is how the designers of the computer instruction set made it work. A disassembler will show the assembly language from machine code. But the compiler usually includes a lot of optimisations from a the high level language and will not often generate very simple assembly.


Which language is directly understood by the computer without translation program?

That would be assembly language or machine language, and just so you know, it is very difficult to learn.


What is an assembler in operating system?

an assembler is aroutine program that translates assemly language source code to a machine language object code


What is difference between machine code and assembly language?

Machine language is the actual instructions in computer memory that are fetched into the processor and executed. It is directly executable and consists of what look to most human beings like a bunch of hexadecimal numbers, though a few geeks such as myself can tell it is code instead of numbers. For example, the instructions executing interrupt 21, service 10, are: B410 CD21 Assembly language is a human readable as mnemonics, it translates on a one for one basis into machine language. The computer cannot execute assembly language directly, but human beings who are trained can understand it. The assembly language equivalent of the above instructions is: MOV AH,10 ; prepare for service 10 by putting 10 into AH INT 21 ; vectors into code established in the interrupt table