MICRO Chap 3 and 4 Flashcards

1
Q

transfers a copy of a byte or word from the source addressing register or contents of a memory location to the destination register or memory location

A

Register Addressing

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

most common form of data addressing and, once the register names are learned, is the easiest to apply

A

Register Addressing

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

transfers the source, an immediate byte, word, addressing doubleword, or quadword of data, into the destination register or memory location

A

Immediate Addressing

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

data immediately follow the hexadecimal opcode in the memory

A

Immediate Addressing

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

directs the assembler to assemble the program into a single code segment.

A

.MODEL TINY

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

indicates the start of the code segment

A

.CODE

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

statement indicates the starting instruction in the program

A

.STARTUP

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

causes the program to exit to DOS.

A

.EXIT

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

indicates the end of the program file.

A

END

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

moves a byte or word between a memory location and a register

A

Direct Addressing

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

transfers data between a memory location, located within the data segment, and the AL (8-bit), AX (l6-bit), or EAX (32-bit) register

A

Direct Addressing

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

3 bytes wide

A

Direct Addressing

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

almost identical to direct addressing, except that the instruction is 4 bytes wide instead of 3

A

Displacement Addressing

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

inform the assembler where the data segment begins.

A

.DATA

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

allows one data segment and one code segment.

A

SMALL model

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

transfers a byte or word between a register and a memory location addressed by an index or base register

A

Register indirect addressing

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

allows data to be addressed at any memory location through an offset address held in any of the following registers: BP, BX, DI, and SI.

A

Register indirect addressing

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

transfers a byte or word between a register and the memory location addressed by a base register (BP or BX) plus an index register (DI or SI)

A

Base-plus-index addressing

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

moves a byte or word between a register and the memory location addressed by an index or base register plus a displacement

A

Register relative addressing

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

transfers a byte or word between a register and the memory location addressed by a base and an index register plus a displacement.

A

Base relative-plus-index addressing

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

The second register of a pair of registers is modified by the scale factor of to generate the operand memory address

A

Scaled-Index Addressing

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

is available only in the 80386 through the Pentium 4 microprocessor

A

Scaled-index Addressing

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

only available to the 64-bit extensions on the Pentium 4 or Core2

A

RIP relative addressing

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

allows access to any location in the memory system by adding a 32-bit displacement to the 64-bit contents of the 64-bit instruction pointer

A

RIP relative addressing

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

used to specify how information is stored in a memory array and can be quite useful with applications that use arrays

A

Data Structure

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

name of memory address

A

label

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

last-in, first-out

A

LIFO

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

data are placed onto stack using this

A

PUSH Instruction

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

data are removed

A

POP Instruction

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

Data Addressing Modes

A
  • Register
  • Immediate
  • Direct
  • Register Indirect
  • Base plus-index
  • Register relative
  • Base relative-plus-index
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Program Memory-addressing Modes

A
  • Direct
  • Relative
  • Indirect addressing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Instruction that copies content of the source operand into the destination operand;
Source never changes

A

MOV

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

Specifies any 8-bit register or 16-bit register

A

Register Addressing

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

Instruction that transfers byte or word that immediately follows the opcode into the register or memory location

A

MOV Immediate

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

Relative to the instruction pointer

A

Relative

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

identify the start of a file and the type of memory model used with the file

A

.MODEL

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

Program exists in one segment, the code segment, and is assembled as a command (.COM) program

A

TINY

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

program uses a code and data segment and assembles as an execute (.EXE) program

A

SMALL

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

used to transfer data between EAX, AX, or AL and memory

A

direct addressing

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

3 bytes of memory

A

direct addressing

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

used with any register-memory transfer

A

displacement addressing

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

4 bytes of memory

A

displacement addressing

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

native binary code that the microprocessor understands and uses as its instructions to control its operation

A

Machine Language

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

selects the operation (addition, subtraction, move, and so on) that is performed by the microprocessor

A

Opcode

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

specifies the addressing mode (MOD) for the selected instruction

A

MOD Field

46
Q

If the MOD field contains a 00, 01, or 10, the R/M field takes on a new meaning.

A

R/M Memory Addressing

47
Q

occurs whenever memory data are referenced by only the displacement mode of addressing for 16-bit instructions

A

Special Addressing Mode

48
Q

*found in the 80386 and above are obtained by either running these machines in the 32-bit instruction mode or in the 16-bit instruction mode by using the address-size prefix 67H

A

32-bit addressing Modes

49
Q

If the contents of a segment register are moved by the MOV, PUSH, or POP instructions, a special set of register bits (REG field) selects the segment register

A

Segment MOV Instructions

50
Q

REX

A

Register Extension

51
Q

SIX FORMS OF PUSH AND POP

A
  • Register
  • Memory
  • Immediate
  • Segment register
  • Flags
  • All registers
52
Q

Copies the contents of the internal register set, except the segment registers, to the stack.

A

PUSHA

53
Q

PUSHA

A

Push all

54
Q

Copies the contents of the flag register to the stack

A

PUSHF

55
Q

PUSHF

A

Push Flags

56
Q

PUSHAD

A

Push All Double

57
Q

performs the inverse operation of a PUSH instruction

A

POP

58
Q

removes data from the stack and places it into the target 16-bit register, segment register, or a 16-bit memory location

A

POP

59
Q

POPF

A

Pop flags

60
Q

removes a 16-bit number from the stack and places it into the flag register

A

POPF

61
Q

POPFD

A

Pop flags double

62
Q

removes a 32-bit number from the stack and places it into the extended flag register.

A

POPFD

63
Q

removes 16 bytes of data from the stack and places them into the following registers, in the order shown: DI, SI, BP, SP, BX, DX, CX, and AX

A

POPA

64
Q

POPA

A

Pop All

65
Q

LEA

A

Load-effective address

66
Q

loads a 16- or 32-bit register with the offset address of the data specified by the operand

A

LEA

67
Q

LDS

A

Load data segment

68
Q

LES

A

Load extra segment

69
Q

LFS

A

Load pointer using FS

70
Q

LGS

A

Load pointer using GS

71
Q

LSS

A

Load pointer using SS

72
Q

loads AL, AX, or EAX with data stored at the data segment offset address indexed by the SI register.

A

LODS

73
Q

LODS

A

Load String Operand

74
Q

STOS

A

Store String data

75
Q

STOSB

A

Stores a byte

76
Q

CMOV

A

Conditional move

77
Q

REP

A

Repeat prefix

78
Q

MOVS

A

Move string

79
Q
  • transfers data from one memory location to another
A

MOVS

80
Q
  • transfers a byte, word, or doubleword of data from an I/O device into the extra segment memory location addressed by the DI register
A

INS

81
Q

INS

A

input string

82
Q

OUTS

A

output string

83
Q
  • transfers a byte, word, or doubleword of data from the data segment memory location address by SI to an I/O device
A

OUTS

84
Q
  • exchanges the contents of a register with the contents of any other register or memory location
A

XCHG

85
Q

XCHG

A

Exchange

86
Q
  • Load status flag into AH register
A

LAHF

87
Q

LAHF

A
  • Load All from Flags
88
Q

SAHF

A
  • Store all to flags
89
Q

XLAT

A
  • Translate
90
Q

converts the contents of the AL register into a number stored in a memory table

A

XLAT

91
Q

MOVSX

A
  • move and sign-extend
92
Q

MOVZX

A
  • move and zero-extend
93
Q

BSWAP

A
  • byte swap
94
Q
  • takes the contents of any 32-bit register and swaps the first byte with the fourth, and the second with the third
A

BSWAP

95
Q

CMOV

A
  • conditional move
96
Q
  • class of instruction is new to the Pentium Pro–Core2 instruction sets.
A

CMOV

97
Q
  • allows the programmer to deviate from the default segment
A

SEGMENT OVERRIDE PREFIX

98
Q
  • indicate how an operand or section of a program is to be processed by the assembler.
A

Directives

99
Q

DB

A
  • Define byte
100
Q

DW

A
  • Define word
101
Q

DD

A
  • Define doubleword
102
Q

DQ

A
  • Define quadword
103
Q

DT

A
  • Define ten bytes
104
Q

EQU

A
  • Equate directive
105
Q

ORG

A
  • Origin
106
Q
  • changes the starting offset address of the data in the data segment to location 300H
A

ORG

107
Q
  • tells the assembler what names have been chosen for the code, data, extra, and stack segments
A

ASSUME

108
Q

PROC

A
  • Procedure (?)
109
Q

ENDP

A

End Procedure

110
Q

MASM

A
  • Microsoft Macro Assembler
111
Q

ASM

A
  • Assembler
112
Q

TASM

A
  • Turbo Assembler