Chapter 7 & 8 Flashcards

1
Q

Logical Shift

A

Fills the newly created bit position with 0

Last bit shifted is moved into CF

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

Arithmetic Shift

A

Fills the newly created bit position with a copy of the number’s sign bit

Last bit shifted is moved into CF

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

SHL Instruction

A

Shift Left - performs a logical left shift on the destination operand, filling the lowest but with 0

Shifting left n bits multiplies the operand by 2^n

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

SHR Instruction

A

Shift Right - performs a logical right shift on the destination operand

The highest bit position is filled with a 0

Shifting right n bits divides the operand by 2^n

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

SAL Instruction

A

Identical to SHL

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

SAR Instruction

A

Shift Arithmetic Right - performs an arithmetic shift on the destination operand

Preserves sign

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

ROL Instruction

A

Rotate/shifts each bit to the left

Highest bit is copied into the CF and into the lowest bit

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

ROR Instruction

A

Rotate/shifts each bit to the right

Lowest bit copied into both the CF and into the highest bit

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

RCL Instruction

A

Rotate Carry Left

Copies the CF to the LSB

Copies the MSB to the CF

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

RCR Instruction

A

Rotate Carry Right

Copies the CF to the MSB
Copies the LSB to the CF

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

SHLD Instruction

A

Shifts destination operand a given number of bits to the left

Syntax:
SHLD destination, source, count

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

SHRD Instruction

A

Shifts destination operand a given number of bits to the right

Syntax:
SHRD destination, source, count

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

MUL Instruction

A

Multiplies an 8,16, or 32-bit operand by AL, AX or EAX

Product - AX, DX:AX, or EDX:EAX

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

IMUL Instruction

A

Signed integer multiplication

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

DIV Instruction

A

Performs 8,16, or 32-bit division on unsigned integers

Dividend - AX, DX:AX, EDX:EAX
Divisor - operand
Quotient - AL, AX, EAX
Remainder - AH, DX, EDX

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

IDIV Instruction

A

Signed Integer Division

17
Q

CBD, CWD, CDQ

A

Convert BYTE to WORD
Convert WORD to DWORD
Convert DWORD to QWORD

18
Q

ADC Instruction

A

Add with carry

  • adds source and the contents of the CF to destination operand
19
Q

SBB Instruction

A

Subtract with borrow

  • subtracts both a source operand and the value of the CF from a destination operand
20
Q

BCD

A

Binary Coded Decimal

  • integers which use 4 binary bits to represent each decimal digit
21
Q

Unpacked BCD

A

Stores a decimal digit in the lower 4 bits of each byte

Hex ex: 5678 is stored as 05 06 07 08

22
Q

AAA Instruction

A

ASCII adjust after addition

23
Q

AAS Instruction

A

ASCII adjust after subtraction

24
Q

AAM Instruction

A

ASCII adjust after multiplication

25
Q

AAD Instruction

A

ASCII adjust before division

26
Q

Packed BCD

A

AKA packed decimal format

  • stores 2 decimal digits per byte

Ex: 12345678d -> hex 12 34 56 78

27
Q

DAA Instruction

A

Decimal adjust after addition

28
Q

DAS Instruction

A

Decimal adjust after subtraction

29
Q

What is another name for Stack Frame?

A

Activation record

30
Q

LEA Instruction

A

Load Effective Address

  • returns offsets of direct and indirect operands
31
Q

OFFSET Operator

A

Returns constant offsets

32
Q

Enter Instruction

A

Creates stack frame for a called procedure

33
Q

LEAVE Instruction

A

Terminated the stack frame for a procedure

34
Q

LOCAL Directive

A

Declares a list of local variables
- immediately follows the PROC directive

Ex:
mySub PROC
LOCAL var1:BYTE,var2:WORD

35
Q

WriteStackFrame Procedure

A

Displays contents of current stack frame

36
Q

ADDR Operator

A

Returns a pointer to a variable

37
Q

PROTO Directive

A

Creates a procedure prototype
- every procedure called by INVOKE must have a PROTO

Syntax: Label PROTO paramList

38
Q

Java Virtual Machine (JVM)

A

Executes compiled bytecodes

Machine language of compiled Java programs