Code Segment : The code segment contains a program's instructions. The declaration syntax is
Where name is the optional name of the segment(there is no need for a name in a SMALL program, because the assembler will generate an error).
Inside a code segment, instructions are organized as procedures. The simplest procedure definition is
;body of the procedure
where name is the name of the procedure, PROC and ENDP are pseudo-ops that delineate the procedure.
Here is an example of a code segment definition :
;main procedure instructions
;other procedure go here