Chapter 3 & 4 Flashcards

1
Q

Integer Operator Precedence

A
  1. ()
  2. +,- (unary)
  3. *,/
  4. MOD
  5. +,-
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Directives

A

Commands that are recognized and acted upon by the assembler

  • used to declare code, declare procedures
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Instructions

A

Assembled into machine code by assembler, executed at runtime by CPU

Contains: label (optional)
Mnemonic operant comment

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

Labels

A

a) Data labels - ex: myArray

b) Code labels - ex: L1:

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

Mnemonics

A

MOV, ADD, SUB, etc.

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

Listing File

A

Shows how program is compiled. Contains:

  • source code
  • addresses
  • object code (machine language)
  • segment names
  • symbols (variables, procedures, constants)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

BYTE, SBYTE

A

8-bit unsigned integer, 8-bit signed integer

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

TBYTE

A

80-bit integer (10 bytes)

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

Data Definition

A

Syntax:
[name] directive initializer

value1 DWORD 2

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

CR/LF

A

Carriage return 0dh
Line feed 0ah

Ex: “hello”,0,dh,ah

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

DUP Operator

A
Syntax: 
counter DUP (argument)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Little Endian Order

A

All data types larger than a byte store their individual bytes in reverse order.

The least significant byte occurs at the first (lowest) memory address

Values read backwards

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

Declaring Uninitialized Data

A

.data?

MyEx BYTE ?

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

$

A

Current location counter

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

EQU

A

Count = 3
Count EQU 3

Equivalent

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

Operant Types

A
  1. Immediate (constant integer)
  2. Register
  3. Memory
17
Q

MOV

A

Move source to destination

mov destination, source

18
Q

Zero extension

A

MOVZX

19
Q

Sign extension

A

MOVSX

20
Q

XCHG

A

Exchanges the values of 2 operands

21
Q

Direct-Offset Operands

A

A constant offset is added to a data label, producing an effective address

Ex: mov al, myArray+1

(Moves second element in byte array to al)

22
Q

TYPE Operator

A

Returns the size (in bytes) of a single element of a data declaration

23
Q

LENGTHOF Operator

A

Returns the number of elements in a single data declaration

24
Q

SIZEOF Operator

A

Returns TYPE * LENGTHOF

25
Q

LABEL Directive

A

Assigns an alternate label name and type to an existing storage location.

Does not allocate storage

26
Q

Indirect Operand

A

Holds the address of a variable (usually array or string)

Can be dereferenced

Ex:
mov esi, OFFSET var1
mov al, [esi]

27
Q

Pointer

A

Ex:
mov esi, OFFSET myCount
inc WORD PTR [esi]