What is assembly statements? What are the rules for declaring name field in assembly language?

Subject Microprocessor and Assembly Language
NU Year Set: 6.(a) Marks: 5 Year: 2009

A statement in pure assembly language corresponds to one machine instruction. Assembly language is much easier to write than machine language. Here is the previous machine instruction and the assembly language that it corresponds to:

machine instruction                             assembly language statement

0000 0001 0010 1011 1000 0000 0010 0000         add $t0,$t1,$t2

An assembly language program consists of statements. The syntax of an assembly language program statement obeys the following rules:

Only one statement is written per line
Each statement is either an instruction or an assembler directive
Each instruction has an opcode and possibly one or more operands
An opcode is known as a mnemonic
Each mnemonic represents a single machine instruction
Operands provide the data to work with
Login to post your comment.