ASSEMBLY X86 FINAL

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following signed decimal values is equivalent to binary 11110000 ?

-16

What is the largest negative signed integer (furthest away from zero in the negative direction) that may be stored in 4 bits?

-23

Which of the following linear addresses matches the segment-offset address 08F0:0200?

09100h

What is the binary representation of the following hexadecimal number BF0D?

1011 1111 0000 1101

The 16-bit two�s complement representation of -33 decimal number is _____?

1111 1111 1101 1111

In a 4-stage non-pipelined processor, how many clock cycles are required to execute 3 instructions? (Assume that each stage executes in a single clock cycle.)

12

What is the largest signed integer that may be stored in 16 bits?

215 - 1

Which of the following unsigned decimal values is equivalent to binary 11110000 ?

240

The largest signed integer you can store into a byte is _____________?

256

How much memory can be addressed in Protected mode?

4GB

What is the largest unsigned integer that may be stored in 16 bits?

65535

Within the CPU, all calculations and logic operations take place inside the ______.

ALU

Which directive identifies the part of a program containing instructions?

CODE

Level 1 assembly language programs have the power and flexibility in the a the area of input-output and use ____________ functions to control devices-specific features like color, graphics, sound, keyboard input, and low-level disk I/O.

Call BIOS

What is the name of the lowest 8 bits of the EDX register?

DL

In the following statement, the destination operand is called _____: mov EAX, 10000h

EAX

Which two 32-bit registers are known as extended index registers?

ESI, EDI

Using the truth table below with (X as the first column and Y as the second column) to figure out the value of not X and Y or X. The answer is_____. F F F T T F T T

F T T T

A character constant must be enclosed in single quotes.

False

An identifier in assembly language may only contain letters and digits.

False

In 64-bit mode, you can use three more general-purpose registers than in 32-bit mode.

False

T F The following binary numbers 11111 sum up to 10101000 11101 11111 01111 11111 11101

False

The DS register can be the destination operand of a MOV instruction.

False

The MOV instruction permits a move between two 8-bit memory operands, as long as one operand uses the BYTE PTR operator.

False

The Overflow flag will never be set when subtracting a positive integer from a negative integer.

False

The PROC directive marks both the beginning and ending of a procedure.

False

The SAHF instruction copies the Sign, Overflow, and Carry flags to the AL register

False

The SDWORD directive has to be used when defining signed 32-bit integers.

False

The following C++ expression can be written using only two lines of assembly language code: X = (Y + 4) * 3;

False

The following instruction will produce 1FFFFFFCh in EDX: movsx edx,-4

False

The following instructions will set the Overflow flag: mov al,0D7h add al,74h

False

The upper half of the RDX register is called EDX.

False

If you were to multiply 1.5 by 2.6, which part of the CPU would you use?

Floating-point unit

Conventional machine language instructions are executed by which virtual machine level?

ISA level

Which one of the following are valid data definition statements:

List1 BYTE 10,20

What is the name of the bus architecture commonly used with Pentium processors?

PCI

The ____________ bus provides two-way serial connections between devices, memory, and the processor.

PCI Express

Which unit in the IA-32 instruction cycle performs page protection checks?

Paging

Which mode is the native state of the Intel processor?

Protected mode

Which directive(s) are used when defining both signed and unsigned 64-bit integers?

QWORD

The LOOP instruction in 64-bit mode uses the ______ register as the loop counter.

RCX

The _______ directive permits a constant to be redefined at any point in a program.

TEXTEQU

Which is true of the two expressions? Expression1: Not x and Not y Expression 2: not(x or y)

The two expressions are equal in all 4 cases.

1. T F The general purpose registers are primarily used for arithmetic and data movement.

True

A code label always ends with a colon (:).

True

A link library contains procedures that have already been assembled into object code.

True

A virtual machine may be constructed from software.

True

An identifier in assembly language may not be more than 247 characters long.

True

If the source code for an assembly language program is modified, you must run both the assembler and linker to update the program's executable code.

True

In any numbering system, the radix specifies the range of alphanumeric digits that can be assigned to a single digit position.

True

In the following statement, EAX is called the source operand: mov EBX,EAX

True

T F 2Bh is an example of a valid hexadecimal integer constant.

True

T F Java is a popular programming language and is well-known for executing its target programs on a virtual machine.

True

T F The IA-32 architecture has a feature called paging, which permits a segment to be divided in to 4096 byte blocks of memory called pages.

True

T F The number 33 base 10 translates into 00100001 in binary.

True

T F The number 33 base 10 translates into 21 in hexadecimal.

True

T F The order of operations in the expression �(6 + 3) + 15 * 5 is that you should add 6 + 3, then the negation, then multiplication and last do the addition.

True

T F The paging unit in the IA-32 instruction cycle performs page protection checks.

True

The 8-bit two's complement of binary 00000010 is 11111110.

True

The Basic Input-Output System is a collection of low-level subroutines that communicate directly with hardware devices.

True

The Carry flag reflects the status of an usigned arithmetic operation.

True

The ES register can the source operand of a MOV instruction

True

The MOVSX instruction sign-extends an integer into a larger operand.

True

The SAHF instruction copies the CPU status flags to the AH register.

True

The binary representation of decimal 42 is 00101010.

True

The expression ¬X ∧ ¬Y is false when X is true and Y is true.

True

The following is a valid data definition statement: helloStr SWORD -32768

True

The following is a valid identifier: AB@62_$

True

The following statement will assemble without errors: mov WORD PTR [eax], 1234h

True

When the POP instruction executes, the ESP register is incremented after the value it points to is copied from the stack.

True

If you wanted to turn a device on and off using computer software, which type of port interface would be best?

USB

If the source code for an assembly language program is modified, you must run both the ______ to update the program's executable code

assembler and linker

The byte-ordering scheme used by computers to store large integers in memory with the high-order byte(78) at the highest address (0003)is called Example: Val DWORD 12345678h Address byte storage 0000: 78 0001: 56 0002: 34 0003: 12

big endian

Which type of program must usually run on multiple platforms?

business application

High-speed memory that reduces the frequency of access by the CPU to conventional memory is called

cache memory

Which of the following CALL instructions writes the contents of EAX to standard output as a signed decimal integer?

call WriteInt

A program is considered portable if it . .

can be executed on multiple platforms.

The four parts of a CPU are:

clock, registers, control unit, arithmetic logic unit

Why are device drivers needed, given that BIOS programs can do the same task?

device drivers allow for the introduction of new devices

During which phase of the instruction execution cycle is the program counter incremented?

fetch

List the three primary steps of the instruction execution cycle, in sequential order

fetch, decode, execute

The three types of buses connected to the CPU are :

fetch-decode, control, execution

The basic parts of an instruction, in order from left to right, are:

label, mnemonic, operand(s),comment

A program that combines object files into an executable program is called a _________.

linker

Which of the following best describes the relationship between assembly language and machine language?

one to one

If you wanted to find out whether an integer contained an even number of 1 bits, which status flag would be useful?

parity

In assembly language, we typically us the term _______________ to mean a subroutine.

procedure

Operands may be any of the following except

reserved word

What type of RAM is typically used for cache memory?

static RAM

Which type of RAM is typically used for cache memory?

static RAM

If virtual machine V2 is radically different that virtual machine V1, what major problem results when we try to run V2 programs on machine V1?

translation is too difficult

Which of the following will generate assembly errors?

var4 BYTE 256,19,40

What is the name of the time delay in a CPU caused by differences between the speed of the CPU, the system bus, and memory circuits?

wait state


संबंधित स्टडी सेट्स

VNSG 1226: Unit 5 Prep U Questions

View Set

BAYADA - Behavioral Challenges of Autism

View Set

MAN 3320 CHAPTER 2 EMPLOYEE STAFFING AND BENEFITS

View Set

Biology 151 - Lecture 11: Meiosis

View Set

OBSTRUCTED AIRWAY (PRE-ASSESSMENT)

View Set

Boston Tea Party and the Intolerable Acts

View Set