answersLogoWhite

0

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

14y ago

What else can I help you with?

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


Why is assembly language considered easier for humans to program than machine language?

Assembly is signficantly shorter and easier to remember than the equivilant machine instructions. Assembly instructions are human readable characters, for which a direct translation exists to the binary machine code instructions. Pseudo example: add <- assembly instruction 1010101010 <- machine instruction