Com 212 intro to system programming book Theory



Download 0.65 Mb.
View original pdf
Page13/72
Date13.05.2021
Size0.65 Mb.
#56617
1   ...   9   10   11   12   13   14   15   16   ...   72
com-212-introduction-to-system-programming-theory
9833 SS1 FISHERY LESSON NOTE


Page | 18
WEEK THREE
Learning outcome for this week Review the work of a pass assembler Basic Assembly Functions Assembler directives An Assembler example program Teachers Activities Outline i Basic assembler functions ii)
A simple SIC assembler example

Page | 19 BASIC ASSEMBLER FUNCTIONS Translating mnemonic operation codes to their machine language equivalents Assigning machine addresses to symbolic labels
Figure 3.1 Basic Assembler Functions

OTHER FUNCTIONS INCLUDE


Converting mnemonic operation codes to their machine language equivalents Converting symbolic operands to their equivalent machine addresses Deciding the proper instruction format Converting the data constants to internal machine representations Writing the object program and the assembly listing ASSEMBLER DIRECTIVES

Assembler directives are pseudo instructions They provide instructions to the assembler itself They are not translated into machine operation codes Example for SIC assembler directive

START : specify name & starting address

END : end of source program, specify the first execution instruction

BYTE, WORD, RESB, RESW

End of record : a null char (00)

End of file : a zero- length record
NOTE: This program example will be theoretically explained in the class and further used

Download 0.65 Mb.

Share with your friends:
1   ...   9   10   11   12   13   14   15   16   ...   72




The database is protected by copyright ©ininet.org 2024
send message

    Main page