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.