user image

Naina Kashyap

Graphic Designing
Graphic Designing
2 years ago

What Is The Use Of The Variable Locctr (location Counter) In Assembler?

user image

Muskan Anand

2 years ago

This variable is used to assign addresses to the symbols. LOCCTR is initialized to the beginning address specified in the START statement. After each source statement is processed the length of the assembled instruction or data area to be generated is added to LOCCTR and hence whenever we reach a label in the source program the current value of LOCCTR gives the address associated with the label. 

Recent Doubts

Close [x]