up, next.

Structure and Syntax of Assembly Language

Structure and Syntax of Assembly Language

The syntax of assembly language is relatively constant across platforms. Of course, this has very little implication for portability as the actual semantics of assembly vary so greatly, but I suppose it is some consolation.

A program (assembly or high-level language) is made up of several segments, each with its own function. The three types of segments are stack segments, data segments, and code segments.

Several different types of components make up an assembly language program. Among these are comments, Instructions and pseudo-instructions, and labels. We will take each of these in turn and examine their syntax and purpose.

up, next.