Chapter 2 2 ( Leehland) Flashcards
Role of Assembler
Source code is converted into the object code
Linker
Object code is converted into the executable code.
Loader
It loads the executable code onto the memory (RAM) for it to get executed by CPU.
Fundamental functions of the Assemblers
Translating the mnemonic operation codes to their machine language equivalent.
Assigning the machine addresses to the symbolic labels.
Assemblers are machine dependent as they have different machine instructions format and _______
codes
Data Transfer (RD, WD)
The end of each record is marked with the null character(00[subscript-16])
The end of the file is indicated by the zero-length record.
Subroutines(JSUB, RSUB)
(RDREC, WRREC)
Saves the link register first before the nested jump.
Pseudo Instructions
Providing instructions to the Assembler.
Not translated into the machine instructions.
Basic Assembler Directive
START
END
BYTE
WORD
RESW
RESB
Object Program
Header
Text
End
End
E
Address of the first executable instruction (hex)
(END_PROGRAM NAME)
TEXT
T
Starting address int his record (hex)
Length of the object code in this record int he bytes (hex)
Object code (69-10+1)/6 =10 instructions
Header
H
Program name
Starting address (hex)
Length of the object program in bytes (hex)
Assembler’s other functions
Convert the data constant into the internal machine representations
Build the machine instructions in the proper format
Write the object t program and the assembly listing.
Forward reference
reference that is defined later in the program