Assembly Flashcards

1
Q

An …….. is a low-level programming language for a computer

A

assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

a very strong correspondence between the language and the architecture’s machine code instructions

A

assembly language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

the conversion process is referred to as assembly involves three steps:

A

Assembling , Linking , and loading .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The assembly steps involve translating the source code into object code and generating an intermediate OBJ file or module

A

Assembling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

…….. calculates the offset for every data item in the data segment and every instruction in the code segment

A

The assembler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The assembler creates a header immediately ahead of the generated OBJ module. Part of the header contains information about …………..

A

incomplete addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Convert the .OBJ module to an .EXE machine code module. Combine separately
assembled programs into one executable module

A

Linking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

Loading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

programs executable program with an …. extension

A

exe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

command common program with a …. extension

A

.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A comment begins with a

A

semicolon (;)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

case sensitive (EXE)
(T/F)

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Instructions such as …… and ….. , which the assembler translates to object code.

A

MOV and ADD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

tell the assembler to perform a specific action, such as define a data item.

A

Directives

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

No operands: …..
One operand: ……
Two operands: …….
Three operands:…….

A

RET
MUL 10
MOV CX , 10
SHRD ECX,EBX,CL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

it provides information for the operation to act on. For a data item, the operand defines its initial
value. For example: Counter DB 0

A

Operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

indicates where to perform the action

A

operand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

the way a source program assembles and lists . Generate no machine code

A

Directives Control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

an assent. program in .EXE format consists of one or more segments.

A

Segment directive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

A stack segment defines …….
A data segment defines……
A …… segment provides for executable code.

A

stack storage ,data items, code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

indicates the boundary on which the segment is to begin. ……is typically
used and is the default.

A

Alignment type,PARA

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

indicates whether to combine the segment with other segments when they are linked after assembly.

A

Combine type

25
Combine types are ...... , ...... , ...... and ..... When a program is not to be linked with others this option may be omitted or code NONE.
STACK, COMMON, PUBLIC, and AT (PUBLIC and COMMON are the most used)
26
The class entry is enclosed in ......., is used to group related segments when linking.. Use 'code' for the code segment, `data' for the data segment, and 'stack' for the stack segment.
(Class type), apostrophes
27
Tells the assembler the purpose of each segment in the program
Assume directive
28
where ENDS end a segment, ENDP ends a procedure. An END directive ends an entire program.
End Proc
29
A data item may contain an undefined value, or a constant, or a character string, or a numeric value.
Data Definition
30
DF:.......
farword
31
DQ
quadword
32
DT
tenbytes
33
DD
doubleword
34
DW
word
35
DB
byte
36
Numeric constants can be in ....,....,....,.....
decimal, hexadecimal, binary, or real.
37
contains machine instructions to be executed.
Code segment (CS)
38
contains program data and constants
Data segment (DS)
39
contains data or addresses needed by called subroutine
Stack segment (SS)
40
...... is a special area defined in memory begins on a paragraph boundary ,Up to...... byte
Segments,64k
41
Segment Registers
CS,DS,SS,ES, FS and GS
42
.....,......,...... registers contain addresses of segments
CS , DS and SS
43
segment address + offset
Actual address
44
address in CS + offset address in IP
Address of next instruction
45
address in SS+ offset address in SP
Address of current word in stack
46
facilitates referencing parameters in stack
BP
47
I/O and arithmetic
AX (accumulator)
48
index to extended address
BX(base reg)
49
for looping
CX(counter reg)
50
for I/O operations
DX(data reg)
51
SI, DI
Index register
52
.COM programs only have ...... for both instructions and data
1 segment
53
restricted to a size of ..... or less
64K
54
.com always smaller than the same program assembled as a .EXE file(T/F)
True
55
combines PSP, stack, data, and code segments into one segment
.COM
56
Assembler automatically generates a stack for ...... program
a .COM
57
The loader will load a .COM program but will initialize all segment registers to the start of the......
PSP
58
Programmer must include a ........directive to get the registers to point to the right place
ORG 100H