Assembly Flashcards
An …….. is a low-level programming language for a computer
assembly language
a very strong correspondence between the language and the architecture’s machine code instructions
assembly language
the conversion process is referred to as assembly involves three steps:
Assembling , Linking , and loading .
The assembly steps involve translating the source code into object code and generating an intermediate OBJ file or module
Assembling
…….. calculates the offset for every data item in the data segment and every instruction in the code segment
The assembler
The assembler creates a header immediately ahead of the generated OBJ module. Part of the header contains information about …………..
incomplete addresses.
Convert the .OBJ module to an .EXE machine code module. Combine separately
assembled programs into one executable module
Linking
load the program for execution and complete any addresses indicated in the header that were left incomplete. drop the header and create a PSP immediately before the program loaded in memory
Loading
programs executable program with an …. extension
exe
command common program with a …. extension
.com
A comment begins with a
semicolon (;)
is a name that you apply to items in your program. The first character of an identifier must be an alphabetic letter or a special character(? $ @ _ ) except for the period may not be the first character, not case sensitive and the maximum length of an identifier is 247 characters
identifier
case sensitive (EXE)
(T/F)
False
Instructions such as …… and ….. , which the assembler translates to object code.
MOV and ADD
tell the assembler to perform a specific action, such as define a data item.
Directives
No operands: …..
One operand: ……
Two operands: …….
Three operands:…….
RET
MUL 10
MOV CX , 10
SHRD ECX,EBX,CL
it provides information for the operation to act on. For a data item, the operand defines its initial
value. For example: Counter DB 0
Operand
indicates where to perform the action
operand
the way a source program assembles and lists . Generate no machine code
Directives Control
an assent. program in .EXE format consists of one or more segments.
Segment directive
A stack segment defines …….
A data segment defines……
A …… segment provides for executable code.
stack storage ,data items, code
indicates the boundary on which the segment is to begin. ……is typically
used and is the default.
Alignment type,PARA