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
Q

Combine types are …… , …… , …… and ….. When a program is not to be linked with others this option may be omitted or code NONE.

A

STACK, COMMON, PUBLIC, and AT (PUBLIC and COMMON are the most used)

26
Q

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.

A

(Class type), apostrophes

27
Q

Tells the assembler the purpose of each segment in the program

A

Assume directive

28
Q

where ENDS end a segment, ENDP ends a procedure. An END directive ends an entire program.

A

End Proc

29
Q

A data item may contain an undefined value, or a constant, or a character string, or a numeric value.

A

Data Definition

30
Q

DF:…….

A

farword

31
Q

DQ

A

quadword

32
Q

DT

A

tenbytes

33
Q

DD

A

doubleword

34
Q

DW

A

word

35
Q

DB

A

byte

36
Q

Numeric constants can be in ….,….,….,…..

A

decimal, hexadecimal, binary, or real.

37
Q

contains machine instructions to be executed.

A

Code segment (CS)

38
Q

contains program data and constants

A

Data segment (DS)

39
Q

contains data or addresses needed by called subroutine

A

Stack segment (SS)

40
Q

…… is a special area defined in memory begins on a paragraph boundary ,Up to…… byte

A

Segments,64k

41
Q

Segment Registers

A

CS,DS,SS,ES, FS and GS

42
Q

…..,……,…… registers contain addresses of segments

A

CS , DS and SS

43
Q

segment address + offset

A

Actual address

44
Q

address in CS + offset address in IP

A

Address of next instruction

45
Q

address in SS+ offset address in SP

A

Address of current word in stack

46
Q

facilitates referencing parameters in stack

A

BP

47
Q

I/O and arithmetic

A

AX (accumulator)

48
Q

index to extended address

A

BX(base reg)

49
Q

for looping

A

CX(counter reg)

50
Q

for I/O operations

A

DX(data reg)

51
Q

SI, DI

A

Index register

52
Q

.COM programs only have …… for both instructions and data

A

1 segment

53
Q

restricted to a size of ….. or less

A

64K

54
Q

.com always smaller than the same program assembled as a .EXE file(T/F)

A

True

55
Q

combines PSP, stack, data, and code segments into one segment

A

.COM

56
Q

Assembler automatically generates a stack for …… program

A

a .COM

57
Q

The loader will load a .COM program but will initialize all segment registers to the start of the……

A

PSP

58
Q

Programmer must include a ……..directive to get the registers to point to the right place

A

ORG 100H