0% found this document useful (0 votes)
132 views1 page

What Are The Advantages of MASM Assembler?

MASM assembler can produce object code in different formats for various operating environments and provides an instruction timing listing. It assembles register-to-memory instructions using either program counter relative or base relative addressing by calculating a displacement. The process status long word contains state variables, flags, condition codes and a compatibility mode flag for a process. Little endian byte ordering stores the least significant part of a numeric value at the lower address while big endian stores it at the highest address. Registers like accumulator, index, link, program counter and status word have specific uses like arithmetic, addressing, linkage and status. The assembler provides relocation information to the loader by identifying relocatable programs without actual load addresses while the program block in

Uploaded by

tarun06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views1 page

What Are The Advantages of MASM Assembler?

MASM assembler can produce object code in different formats for various operating environments and provides an instruction timing listing. It assembles register-to-memory instructions using either program counter relative or base relative addressing by calculating a displacement. The process status long word contains state variables, flags, condition codes and a compatibility mode flag for a process. Little endian byte ordering stores the least significant part of a numeric value at the lower address while big endian stores it at the highest address. Registers like accumulator, index, link, program counter and status word have specific uses like arithmetic, addressing, linkage and status. The assembler provides relocation information to the loader by identifying relocatable programs without actual load addresses while the program block in

Uploaded by

tarun06
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like