Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
81MODULARPROGRAMMING
Many programs are too large to be developed
by one person.
programs are routinely developed by teams of
programmers
TheAssemblerandLinker
The assemblerprogram converts a symbolic
sourcemodule (file) into a hexadecimal
objectfile.
It is even a part of Visual Studio, located in the
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin folder.
The version that comes with Visual C will not
work for 16-bit DOS programs.
if a 16-bit assembler and linker are needed, they
are in the Windows Driver Development Kit (DDK)
The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium,
Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions
PublicandExtern
Very important to modular programming as
they allow communications between modules.
PUBLIC declares labels of code, data, or entire
segments are available to other program modules
EXTRN (external) declares labels are external
to a module
Libraries
Libraries allow common procedures to be
collected into one place so they can be used
by many different applications.
assembled and compiled by the LIB program
that accompanies the MASM assembler
Macros
A group of instructions that perform one task,
just as a procedure performs one task.
a procedure is accessed via a CALL instruction
a macro & all instructions defined in the macro,
is inserted in the program at the point of usage