ste.pdf
ste.pdf
• What is MACRO?
• The macro is invoked by using the macro name along with the
necessary parameters. When you need to use some sequence of
instructions many times in a program, you can put those
instructions in a macro and use it instead of writing the
instructions all the time.
• The first step in writing a program is to think very carefully about the
problem that you want the program. It is a good idea to write down
exactly what you want the program to do and the order in which you
• Want the program to do it. At this point you do not write down program
statements, you just write the operations you want in general terms.
• Specifying functional and I/O specs is very crucial part of this Problem
definition stage.
Algorithm :
• Once the problem is defined, it is analyzed for the solution. The solution
is designed for the given problem.
• The language used is English like but important control structures are
expressed by specific words such as SET (To initialize The Entity or
variable
All operational details are in the form of step by step sequence and it
makes easy for the programmer to understand the flow of the program.
Initialization checklist :
o When all steps are converted in this way, it forms the assembly
language program for given problem. The program is now ready.
At the start of program, required initialization instructions are
written.
• These tools are programs which help you run the program to
perform same function on the program you are writing
• These tools are pre develop program software that come to the
aid of developer programmer for writing assembling running
testing and debugging the program at the various stages in the
program development life cycle.
EDITOR
• An editor is a program which allows you to create a file
containing the Assembly language statements for your program.
Assembler
• An assembler is a program used to translate or convert the assembly
language mnemonics of the source code program for instructions to
the corresponding binary codes (machine language) which is called
as the Object code of the program.
• It works in two pass. On the first pass through source program, the
assembler determines the displacement of named data items, the
offset of labels, etc. and puts this information in a symbol table.
• The output file is called object file and has extension OBJ. The
object file contains the binary codes for the instructions and
information about the addresses of the instructions. After further
processing the contain of this file would be loaded into memory and
executed
Linker
o Linker is a program used to join several object files into one large
object file and converts the machine language object code of the
program into Executable code of the program
o Also the object modules for useful programs like square root
program can be kept in library file and linked into other program as
needed. The linker produces a link file which contains the binary
codes for all the combined modules.
o The linker also produces a link map file which contains the address
information about the linked files.
o The linker assigns only relative address to the program starting
from zero This form of program is said to be re-locatable because it
can be put anywhere in memory to be run.
o TASM or MASM assemblers use Tlink exe and Link exe as the
linker tools, respectively. The output of the linker is executable
code of the developed program, which is stored as .EXE file.
Debugger
o If the program does not require any external hardware or
console input or output then debugger is used to load the. EXE
file in main memory and run it.
o Debugger is the tool that helps us test and examine the program
for its desired specified functionally as it is executing.
• Reference
https://www.educba.com/what-is-assembly-language/
https://en.m.wikipedia.org/wiki/Assembly_language
https://www.quora.com/What-are-some-projects-in-
assemblylanguagethat-I-can-make-for-my-college