Académique Documents
Professionnel Documents
Culture Documents
1. What is an assembler?
An assembler is a program that accepts as input assembly language
program and produces its machine language equivalent along with the information
for the loader.
3. What are the functions required in translation of source program to object code?
Convert mnemonic operation codes to their machine language equivalent.
Convert symbolic operands to their equivalent machine address.
Built the machine instructions in the proper format.
Convert the data constant specified in the source program to their internal
machine representation.
7. List the steps involved in defining symbols and literals (PASS1 of an assembler)?
The steps involved in defining symbols and literals are
Determining length of machine instructions.
Keeping track of location counter.
Remembering values until PASS2.
Processing some pseudo ops.
Remembering literals.
11. What are the types of record present in a simple object program?
Header record Contains the program name, starting address length.
Text record Contains translated instruction and data of the program,
together with the indication of the address where these are to be loaded.
End record->Marks the end of the object program.