




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An overview of the role of an assembler in translating mnemonic language code to its equivalent object code. It explains the basic features of an assembler, the functions it performs during the translation process, and the use of assembler directives. The document also includes examples of object codes and their corresponding source codes.
What you will learn
Typology: Summaries
1 / 8
This page cannot be seen from the preview
Don't miss anything!
Basic Assembler Features
Assembler Object Program
Source Program
Simple SIC Assembler
The translation of source program to object code requires to
accomplish the following functions
equivalents
All of these functions except 2 can easily be accomplished by
sequential processing of the source program one line at a time
Forward Referencing
PROG START 1000
1000 LDA FIVE
1003 STA ALPHA
1006 LDCH CHARZ
1009 STCH C
100C ALPHA RESW 1
100F FIVE WORD 5
1012 CHARZ BYTE C’Z’
1013 C1 RESB 1
END
Because of Forwarding Referencing
most assemblers make two passes over
the source program
First pass: scan the source program for
label definitions and assign addresses
Second pass: perform actual
translation
Finding Object Codes cntd…
Example 2
disp= TA- (PC)
disp= TA- (PC)
disp=TA-(PC)
2’s complement
Thank You