What Are The Advantages of MASM Assembler?
What Are The Advantages of MASM Assembler?
The object program from MASM may be in several different formats, to allow easy and efficient execution of the program in a variety of operating environments. MASM can also produce an instruction timing listing that shows the number of clock cycles required to execute each machine instruction. How the register-to-memory instructions are assembled. The register-to-memory instructions are assembled using either program counter relative or base relative addressing. The assembler must, in either case, calculate a displacement to be assembled as part of the object instruction. What is Process Status Long Word (PSL) PSL contains state variable and flags associated with a process. The PSL also includes a condition code and a flag that specifies whether compatibility mode is being used or not. What is little Endian Byte ordering? The least significant part of a numeric value is stored at the lower numbered address. This is called little Endean byte ordering because the little end of the value comes first in memory. What is Big endian Byte Ordering? The least significant part of the numeric value is stored at the lowest numbered address is called Big Endean Byte Ordering. Describe the use of the registers A, X, L, PC, SW. Register A Accumulator X Index RegisterL PC Program Counter SW Purpose used for Arithmetic operations used for addressing. Linkage register Contains the address of the next instruction to be fetched for execution. Status Word
HOW the Assembler gives Program Relocation Information to the Loader? The Assembler does not know the actual location where the program will be loaded. It cannot make the necessary changes in the addresses used by the Program at load time. However the assembler can identify the object program that needs modification. An object program that contains the information necessary to perform this kind of modification is called Relocatable Program. Thus the information would be given to the loader. Define Program Block Program Block refer to segment of code are handled by the assembler as one entity resulting in a single block of object code. In this object code the generated machine instructions and data appeared in the same order as they are written in the source program.