Design of 2-Pass Assemblers
Design of 2-Pass Assemblers
Agenda
Introduction
Advanced Assembler Directives
ORIGIN
EQU
LT ORG
Pass I of the Assembler
Data Structure used in Pass I
Algorithm
Intermediate code
Declaration and Assembler Directive Processing
Pass II of the Assembler
OPTAB
SYMTAB
LITTAB
POOLTAB
Introduction
Source
Program
Assembler
Object
Code
Linker
Executable
Code
Loader
Introduction
Source
program
Intermediate
file
Pass 1
OPTAB
SYMTAB
Pass 2
SYMTAB
Object
codes
Pass 1
Pass 2
ORIGIN
EQU
ORIGIN
EQU
Syntax:
ORIGIN < Address Specification>
ORIGIN
EQU
Syntax:
<Symbol> EQU <Address Specification>
Pass I of Assembler
Pass I of Assembler
Pass I of Assembler
Pass I of Assembler
Pass I of Assembler
Algorithm
Algorithm