Slide 1.d: Programming langauge ranking (cont.)
Slide 2.b: Assembly languages
Home

Machine Languages


A machine-language program is read and interpreted by the computer.

The figure is the block-level diagram of the ARM1176JZF-S processor designed for use as applications processors in consumer and wireless products.

Each type of CPU has its own machine language, so a program written for one type of CPU will not run on another (not portable). A program in machine code consists of a sequence of machine instructions, which are binary strings and with yellow background in the code below.

 Microsoft (R) Macro Assembler Version 8.0		    08/06/08 10:16:56 
 test.asm						    Page 1 - 1
				INCLUDE Irvine32.inc
			      C ; Include file for Irvine32.lib      (Irvine32.inc)
			      C INCLUDE SmallWin.inc
                              C	; MS-Windows prototypes, structures, and constants  
			      C .NOLIST
			      C .LIST
  00000000			.code
  00000000			main PROC
  00000000  B8 00010000		   mov  eax, 10000h
  00000005  05 00040000		   add  eax, 40000h
  0000000A  2D 00020000		   sub  eax, 20000h
				   exit
  00000016			main ENDP
 				END main

Execution of machine code may either be