label the label directive which is used to


LABEL : 

The Label directive which is used to assign a name to the current content of the location counter. At the beginning of the assembly process, the assembler start a location counter to keep track of memory locations assigned to the program. As the program assembly proceeds, the specific contents of location counter are updated. At the time the assembly process, whenever the assembler across the LABEL directive, itassigns the declared label with the current contents of the location counter. The type of the label ought to be specified, for example whether it is a NEAR or a FAR label, WORD or BYTE label, etc.

A LABEL directive can be used to make a FAR jump as shown. A FAR jump can't be made at a normal label with a colon. The label CONTINUES is used for a FAR jump, if the program contains the below describe statement.

CONTINUE       LABEL FAR

The LABEL directive is used to refer to the data segment along with the data type, word or byte as showing.

DATA SEGMENT DATAS DB 5 OH DUP (?) DATA-LAST LABEL BYTE FAR DATA ENDS

After reserving the 50H locations for DATAS, the next location will be assigned a label DATALAST and its type will be far and byte.

 

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: label the label directive which is used to
Reference No:- TGS0173557

Expected delivery within 24 Hours