100% found this document useful (1 vote)
108 views4 pages

Pass1 of A Ssembl Er

1) Pass1 of the assembler reads cards containing source code and assigns symbol values like location counters. 2) Pass2 reads the cards again, evaluates expressions, inserts values into instructions, determines effective addresses, and prints the assembly listing. 3) The assembler performs tasks like searching symbol tables, evaluating operands, adjusting location counters, and generating literals to assemble the source code into machine-readable object code.

Uploaded by

maheshkhatwani
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
108 views4 pages

Pass1 of A Ssembl Er

1) Pass1 of the assembler reads cards containing source code and assigns symbol values like location counters. 2) Pass2 reads the cards again, evaluates expressions, inserts values into instructions, determines effective addresses, and prints the assembly listing. 3) The assembler performs tasks like searching symbol tables, evaluating operands, adjusting location counters, and generating literals to assemble the source code into machine-readable object code.

Uploaded by

maheshkhatwani
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 4

PASS1 OF A SSEMBL ER

Pass1

LC0

Read card
READ1

symbol Yes Assign value of


on label LC to symbol
field ?
STSTO
No
Se arch P OT Type ?
POTG ET Found DS EQU USING END
Not DC DROP
Found Search MOT Adjust LC Evaluate
MOTGET to proper op eran d Assign stor-
alignment fiel d age locations
L  length EVAL to literals
L  length LITASS
Process Literals
of data field
LITSTO Assign value
DLENGTH to symbol in
Go to
label field
LC  LC + L pass 2

STSTO
Write copy of card on
file for use by pass2
WRITE1
PASS2 OF A SSEMBL ER
Pa ss2

LC  0

Re ad ca rd
b
REA D2

Found
Search PO T Type ?
DS/DC
POT GET EQU USING DROP END
Adj us t LC to prop er
Not
alig nment Ev alua te In dica te
Found Sea rch MOT Form Op era nd ba se reg
MOT GET DC co nst ant and no un
DS or DC ? ins ert in ass. EVA L
ava ila ble
DS pro gra m
L  le ng th DCGEN BT DROP
L  leng th of Ent er ba se
Type of data fi eld reg no and
instruction? RX a va lue int o
DLENGT H ba se table
RR
Eva lua te reg and ind ex BTS TO
Ev alua te bot h re g
ex pressio ns and ins ert
ex press ions and
into 2 nd by te
inser t in to 2 nd by te
EVA L Print assem bly list ing
EVAL
PRI NT
Ca lcula te EA of
a Prin t assem blylist ing opera nd
EVA L Gener ate lit era ls
PR IN T b fo r ent ries in
Determ ine dis pla cement Lit era l ta ble
LC  LC + L and base reg D+C( B)=EA
LT GEN
EVAL

Put B & D int o by tes 3 and 4 ST OP

You might also like